Python/bokeh

From Wiki
< Python
Revision as of 21:41, 23 February 2018 by Marcluer (talk | contribs)

= 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)