diff --git a/geoviews/operation/regrid.py b/geoviews/operation/regrid.py index 2bc11e74..9de899a5 100644 --- a/geoviews/operation/regrid.py +++ b/geoviews/operation/regrid.py @@ -22,7 +22,7 @@ class weighted_regrid(regrid): operation. """ - interpolation = param.ObjectSelector(default='bilinear', + interpolation = param.Selector(default='bilinear', objects=['bilinear', 'conservative', 'nearest_s2d', 'nearest_d2s'], doc=""" Interpolation method""") diff --git a/geoviews/plotting/bokeh/__init__.py b/geoviews/plotting/bokeh/__init__.py index c3147c64..f1fd7255 100644 --- a/geoviews/plotting/bokeh/__init__.py +++ b/geoviews/plotting/bokeh/__init__.py @@ -267,7 +267,7 @@ def get_data(self, element, ranges, style): class FeaturePlot(GeoPolygonPlot): - scale = param.ObjectSelector(default='110m', + scale = param.Selector(default='110m', objects=['10m', '50m', '110m'], doc="The scale of the Feature in meters.") diff --git a/geoviews/plotting/mpl/__init__.py b/geoviews/plotting/mpl/__init__.py index 06384f95..3a7be046 100644 --- a/geoviews/plotting/mpl/__init__.py +++ b/geoviews/plotting/mpl/__init__.py @@ -499,7 +499,7 @@ class FeaturePlot(GeoPlot): Draws a feature from a Features Element. """ - scale = param.ObjectSelector(default='110m', + scale = param.Selector(default='110m', objects=['10m', '50m', '110m'], doc="The scale of the Feature in meters.") diff --git a/geoviews/plotting/mpl/chart.py b/geoviews/plotting/mpl/chart.py index d62cf170..fefae579 100644 --- a/geoviews/plotting/mpl/chart.py +++ b/geoviews/plotting/mpl/chart.py @@ -24,7 +24,7 @@ class WindBarbsPlot(ColorbarPlot): padding = param.ClassSelector(default=0.05, class_=(int, float, tuple)) - convention = param.ObjectSelector(objects=["from", "to"], doc=""" + convention = param.Selector(default="from", objects=["from", "to"], doc=""" Convention to return direction; 'from' returns the direction the wind is coming from (meteorological convention), 'to' returns the direction the wind is going towards (oceanographic convention).""")