mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-12-26 19:08:16 -07:00
change available tools on plots
This commit is contained in:
parent
0790999fd8
commit
5ae0707162
|
@ -72,11 +72,11 @@ brightness_plot_source = ColumnDataSource(data=dict(sensor=brightness_idx, brigh
|
||||||
time_plot_source = ColumnDataSource(data=dict(t=time_data[:,0], e=time_data[:,1], c=time_data[:,2]))
|
time_plot_source = ColumnDataSource(data=dict(t=time_data[:,0], e=time_data[:,1], c=time_data[:,2]))
|
||||||
|
|
||||||
# Set up plots
|
# Set up plots
|
||||||
brightness_plot = figure(plot_height=150, plot_width=400, x_range=[0, 7], y_range=[0, 1])
|
brightness_plot = figure(plot_height=150, plot_width=400, x_range=[0, 7], y_range=[0, 1], tools="save")
|
||||||
brightness_plot.line('sensor', 'brightness', source=brightness_plot_source, line_width=3)
|
brightness_plot.line('sensor', 'brightness', source=brightness_plot_source, line_width=3)
|
||||||
brightness_plot.circle('sensor', 'brightness', source=brightness_plot_source, size=8, fill_color="white", line_width=2)
|
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, y_range=[-1, 1])
|
time_plot = figure(plot_height=400, plot_width=800, y_range=[-1, 1], tools="crosshair,pan,reset,save,wheel_zoom")
|
||||||
time_plot.line('t', 'e', source=time_plot_source, line_width=3, line_alpha=0.6, legend_label="e(t)")
|
time_plot.line('t', 'e', source=time_plot_source, line_width=3, line_alpha=0.6, legend_label="e(t)")
|
||||||
time_plot.line('t', 'c', source=time_plot_source, line_width=3, line_alpha=0.6, legend_label="c(t)", line_color = "green")
|
time_plot.line('t', 'c', source=time_plot_source, line_width=3, line_alpha=0.6, legend_label="c(t)", line_color = "green")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user