From 99af07b5e486725f7505dcb963db8aab40276de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Wed, 6 Sep 2023 09:38:06 +0200 Subject: [PATCH] Add **kwargs to all get_extents (#670) --- geoviews/plotting/bokeh/__init__.py | 4 ++-- geoviews/plotting/plot.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/geoviews/plotting/bokeh/__init__.py b/geoviews/plotting/bokeh/__init__.py index 1da17235..b0d4d56f 100644 --- a/geoviews/plotting/bokeh/__init__.py +++ b/geoviews/plotting/bokeh/__init__.py @@ -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')): @@ -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 diff --git a/geoviews/plotting/plot.py b/geoviews/plotting/plot.py index c2eaf240..bdd39d91 100644 --- a/geoviews/plotting/plot.py +++ b/geoviews/plotting/plot.py @@ -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