Python/bokeh: Difference between revisions
< Python
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Simple example = | == Simple example == | ||
<pre> | <pre> | ||
from bokeh.plotting import figure, output_file, show, output_notebook | from bokeh.plotting import figure, output_file, show, output_notebook |
Latest revision as of 21:41, 23 February 2018
Simple example
from bokeh.plotting import figure, output_file, show, output_notebook data_x = [0,1,2,3,4] data_y = [-1,5,2,4,3] output_notebook() p = figure(title="Scale drift over time", x_axis_label='time [s]', y_axis_label='weight [g]', plot_width=1050) p.line(data_x, data_y, legend="weight", line_width=1, line_color="red") show(p)