Replace SaveTool with BoxZoomTool

This commit is contained in:
usov_i 2020-04-09 15:12:52 +02:00
parent a584be3c08
commit f3aabbeecb

View File

@ -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