Replace SaveTool with BoxZoomTool
This commit is contained in:
parent
a584be3c08
commit
f3aabbeecb
@ -6,6 +6,7 @@ from bokeh.layouts import column, gridplot, row
|
|||||||
from bokeh.models import (
|
from bokeh.models import (
|
||||||
BasicTicker,
|
BasicTicker,
|
||||||
BoxEditTool,
|
BoxEditTool,
|
||||||
|
BoxZoomTool,
|
||||||
Button,
|
Button,
|
||||||
ColumnDataSource,
|
ColumnDataSource,
|
||||||
DataRange1d,
|
DataRange1d,
|
||||||
@ -269,7 +270,7 @@ overview_plot_x = Plot(
|
|||||||
# ---- tools
|
# ---- tools
|
||||||
overview_plot_x.toolbar.logo = None
|
overview_plot_x.toolbar.logo = None
|
||||||
overview_plot_x.add_tools(
|
overview_plot_x.add_tools(
|
||||||
PanTool(), WheelZoomTool(maintain_focus=False), SaveTool(), ResetTool(),
|
PanTool(), BoxZoomTool(), WheelZoomTool(maintain_focus=False), ResetTool(),
|
||||||
)
|
)
|
||||||
|
|
||||||
# ---- axes
|
# ---- axes
|
||||||
@ -306,7 +307,7 @@ overview_plot_y = Plot(
|
|||||||
# ---- tools
|
# ---- tools
|
||||||
overview_plot_y.toolbar.logo = None
|
overview_plot_y.toolbar.logo = None
|
||||||
overview_plot_y.add_tools(
|
overview_plot_y.add_tools(
|
||||||
PanTool(), WheelZoomTool(maintain_focus=False), SaveTool(), ResetTool(),
|
PanTool(), BoxZoomTool(), WheelZoomTool(maintain_focus=False), ResetTool(),
|
||||||
)
|
)
|
||||||
|
|
||||||
# ---- axes
|
# ---- axes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user