From b0eaf4dd2d4cdb48b47dbfae6d8c03dd9af3003c Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Mon, 2 Mar 2020 20:10:58 -0700 Subject: [PATCH] add plot legend --- Software/python/hwtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Software/python/hwtest.py b/Software/python/hwtest.py index be65dcd..2a6089d 100644 --- a/Software/python/hwtest.py +++ b/Software/python/hwtest.py @@ -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