Add HoverTool to param study overview plot

This commit is contained in:
usov_i 2021-03-01 17:39:04 +01:00
parent 69767da850
commit 554716fc9a

View File

@ -20,6 +20,7 @@ from bokeh.models import (
Dropdown, Dropdown,
FileInput, FileInput,
Grid, Grid,
HoverTool,
Legend, Legend,
Line, Line,
LinearAxis, LinearAxis,
@ -312,6 +313,9 @@ def create():
ov_plot_mline_source = ColumnDataSource(dict(xs=[], ys=[], param=[], color=[])) ov_plot_mline_source = ColumnDataSource(dict(xs=[], ys=[], param=[], color=[]))
ov_plot.add_glyph(ov_plot_mline_source, MultiLine(xs="xs", ys="ys", line_color="color")) ov_plot.add_glyph(ov_plot_mline_source, MultiLine(xs="xs", ys="ys", line_color="color"))
hover_tool = HoverTool(tooltips=[("param", "@param")])
ov_plot.add_tools(PanTool(), WheelZoomTool(), hover_tool, ResetTool())
ov_plot.add_tools(PanTool(), WheelZoomTool(), ResetTool()) ov_plot.add_tools(PanTool(), WheelZoomTool(), ResetTool())
ov_plot.toolbar.logo = None ov_plot.toolbar.logo = None