Skip to content

Commit

Permalink
Add **kwargs to all get_extents (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Sep 6, 2023
1 parent bb5fcd2 commit 99af07b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions geoviews/plotting/bokeh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TilePlot(GeoPlot):

style_opts = ['alpha', 'render_parents', 'level', 'smoothing', 'min_zoom', 'max_zoom']

def get_extents(self, element, ranges, range_type='combined'):
def get_extents(self, element, ranges, range_type='combined', **kwargs):
extents = super().get_extents(element, ranges, range_type)
if (not self.overlaid and all(e is None or not np.isfinite(e) for e in extents)
and range_type in ('combined', 'data')):
Expand Down Expand Up @@ -215,7 +215,7 @@ class FeaturePlot(GeoPolygonPlot):
objects=['10m', '50m', '110m'],
doc="The scale of the Feature in meters.")

def get_extents(self, element, ranges, range_type='combined'):
def get_extents(self, element, ranges, range_type='combined', **kwargs):
proj = self.projection
if self.global_extent and range_type in ('combined', 'data'):
(x0, x1), (y0, y1) = proj.x_limits, proj.y_limits
Expand Down
2 changes: 1 addition & 1 deletion geoviews/plotting/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _get_projection(self, obj):
else:
return None

def get_extents(self, element, ranges, range_type='combined'):
def get_extents(self, element, ranges, range_type='combined', **kwargs):
"""
Subclasses the get_extents method using the GeoAxes
set_extent method to project the extents to the
Expand Down

0 comments on commit 99af07b

Please sign in to comment.