<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Bokeh%3A_Plot_dengan_Axis_Datetime</id>
	<title>Bokeh: Plot dengan Axis Datetime - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Bokeh%3A_Plot_dengan_Axis_Datetime"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Bokeh:_Plot_dengan_Axis_Datetime&amp;action=history"/>
	<updated>2026-04-21T02:27:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Bokeh:_Plot_dengan_Axis_Datetime&amp;diff=45104&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: Plot dengan axis datetime.  Lakukan   cd /var/www/html  vi stocks.html  Source   import numpy as np    from bokeh.plotting import figure, output_file, show  from bokeh.sampledata.stocks im...</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Bokeh:_Plot_dengan_Axis_Datetime&amp;diff=45104&amp;oldid=prev"/>
		<updated>2015-11-27T07:46:41Z</updated>

		<summary type="html">&lt;p&gt;New page: Plot dengan axis datetime.  Lakukan   cd /var/www/html  vi stocks.html  Source   import numpy as np    from bokeh.plotting import figure, output_file, show  from bokeh.sampledata.stocks im...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Plot dengan axis datetime.&lt;br /&gt;
&lt;br /&gt;
Lakukan&lt;br /&gt;
&lt;br /&gt;
 cd /var/www/html&lt;br /&gt;
 vi stocks.html&lt;br /&gt;
&lt;br /&gt;
Source&lt;br /&gt;
&lt;br /&gt;
 import numpy as np&lt;br /&gt;
 &lt;br /&gt;
 from bokeh.plotting import figure, output_file, show&lt;br /&gt;
 from bokeh.sampledata.stocks import AAPL&lt;br /&gt;
 &lt;br /&gt;
 # prepare some data&lt;br /&gt;
 aapl = np.array(AAPL[&amp;#039;adj_close&amp;#039;])&lt;br /&gt;
 aapl_dates = np.array(AAPL[&amp;#039;date&amp;#039;], dtype=np.datetime64)&lt;br /&gt;
 &lt;br /&gt;
 window_size = 30&lt;br /&gt;
 window = np.ones(window_size)/float(window_size)&lt;br /&gt;
 aapl_avg = np.convolve(aapl, window, &amp;#039;same&amp;#039;)&lt;br /&gt;
 &lt;br /&gt;
 # output to static HTML file&lt;br /&gt;
 output_file(&amp;quot;stocks.html&amp;quot;, title=&amp;quot;stocks.py example&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 # create a new plot with a a datetime axis type&lt;br /&gt;
 p = figure(width=800, height=350, x_axis_type=&amp;quot;datetime&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 # add renderers&lt;br /&gt;
 p.circle(aapl_dates, aapl, size=4, color=&amp;#039;darkgrey&amp;#039;, alpha=0.2, legend=&amp;#039;close&amp;#039;)&lt;br /&gt;
 p.line(aapl_dates, aapl_avg, color=&amp;#039;navy&amp;#039;, legend=&amp;#039;avg&amp;#039;)&lt;br /&gt;
 &lt;br /&gt;
 # NEW: customize by setting attributes&lt;br /&gt;
 p.title = &amp;quot;AAPL One-Month Average&amp;quot;&lt;br /&gt;
 p.legend.orientation = &amp;quot;top_left&amp;quot;&lt;br /&gt;
 p.grid.grid_line_alpha=0&lt;br /&gt;
 p.xaxis.axis_label = &amp;#039;Date&amp;#039;&lt;br /&gt;
 p.yaxis.axis_label = &amp;#039;Price&amp;#039;&lt;br /&gt;
 p.ygrid.band_fill_color=&amp;quot;olive&amp;quot;&lt;br /&gt;
 p.ygrid.band_fill_alpha = 0.1&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>