add plot legend

This commit is contained in:
Brendan Haines 2020-03-02 20:10:58 -07:00
parent 3e114fd4fa
commit b0eaf4dd2d

View File

@ -66,7 +66,7 @@ brightness_plot.line('sensor', 'brightness', source=brightness_plot_source, line
brightness_plot.circle('sensor', 'brightness', source=brightness_plot_source, size=8, fill_color="white", line_width=2)
time_plot = figure(plot_height=400, plot_width=800, title="Signals", y_range=[-3.5, 3.5])
time_plot.line('t', 'e', source=time_plot_source, line_width=3, line_alpha=0.6)
time_plot.line('t', 'e', source=time_plot_source, line_width=3, line_alpha=0.6, legend_label="e(t)")
def update_plots(attrname=None, old=None, new=None):
global brightness