Skip to content
Browse files
Use box_zoom tool with match_aspect=True for bokeh geoplots
  • Loading branch information
philippjfr committed Apr 18, 2017
1 parent e6acf18 commit c6c41a979dca928c83d74c3773df458840832907
Showing 1 changed file with 6 additions and 1 deletion.
@@ -6,12 +6,13 @@
import shapely.geometry
from bokeh.models import WMTSTileSource
from import BoxZoomTool

from holoviews import Store
from holoviews.core import util
from holoviews.core.options import SkipRendering, Options
from holoviews.plotting.bokeh.annotation import TextPlot
from holoviews.plotting.bokeh.element import ElementPlot
from holoviews.plotting.bokeh.element import ElementPlot, OverlayPlot
from holoviews.plotting.bokeh.chart import PointPlot
from holoviews.plotting.bokeh.path import PolygonPlot, PathPlot
from holoviews.plotting.bokeh.raster import RasterPlot
@@ -32,6 +33,10 @@ class GeoPlot(ElementPlot):
Plotting baseclass for geographic plots with a cartopy projection.

default_tools = param.List(default=['save', 'pan', 'wheel_zoom',
BoxZoomTool(match_aspect=True), 'reset'],
doc="A list of plugin tools to use on the plot.")

show_grid = param.Boolean(default=False)

def __init__(self, element, **params):

0 comments on commit c6c41a9

Please sign in to comment.