Python/bokeh

From Wiki
< Python
Revision as of 21:36, 23 February 2018 by Marcluer (talk | contribs) (Die Seite wurde neu angelegt: „<pre> 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="S…“)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]')

p.line(data_x, data_y, legend="weight", line_width=1, line_color="red")

show(p)