Add HoverTool to param study overview plot
This commit is contained in:
parent
69767da850
commit
554716fc9a
@ -20,6 +20,7 @@ from bokeh.models import (
|
||||
Dropdown,
|
||||
FileInput,
|
||||
Grid,
|
||||
HoverTool,
|
||||
Legend,
|
||||
Line,
|
||||
LinearAxis,
|
||||
@ -312,6 +313,9 @@ def create():
|
||||
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"))
|
||||
|
||||
hover_tool = HoverTool(tooltips=[("param", "@param")])
|
||||
ov_plot.add_tools(PanTool(), WheelZoomTool(), hover_tool, ResetTool())
|
||||
|
||||
ov_plot.add_tools(PanTool(), WheelZoomTool(), ResetTool())
|
||||
ov_plot.toolbar.logo = None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user