diff --git a/doc/api/api_changes/2017-05-19-resolution_polar_axes.rst b/doc/api/api_changes/2017-05-19-resolution_polar_axes.rst new file mode 100644 index 000000000000..d049b2a7b34a --- /dev/null +++ b/doc/api/api_changes/2017-05-19-resolution_polar_axes.rst @@ -0,0 +1,6 @@ +Removed resolution kwarg from PolarAxes +``````````````````````````````````````` + +The kwarg `resolution` of `matplotlib.projections.polar.PolarAxes` has been +removed. It has triggered a deprecation warning of being with no effect +beyond version `0.98.x`. diff --git a/lib/matplotlib/projections/__init__.py b/lib/matplotlib/projections/__init__.py index fc47c95da9c8..1e423420b0b6 100644 --- a/lib/matplotlib/projections/__init__.py +++ b/lib/matplotlib/projections/__init__.py @@ -87,11 +87,6 @@ def process_projection_requirements(figure, *args, **kwargs): projection) projection = 'polar' - # ensure that the resolution keyword is always put into the key - # for polar plots - if projection == 'polar': - kwargs.setdefault('resolution', 1) - if isinstance(projection, six.string_types) or projection is None: projection_class = get_projection_class(projection) elif hasattr(projection, '_as_mpl_axes'): diff --git a/lib/matplotlib/projections/polar.py b/lib/matplotlib/projections/polar.py index a5d2b03c34b5..e398969df785 100644 --- a/lib/matplotlib/projections/polar.py +++ b/lib/matplotlib/projections/polar.py @@ -227,23 +227,11 @@ class PolarAxes(Axes): def __init__(self, *args, **kwargs): """ Create a new Polar Axes for a polar plot. - - The following optional kwargs are supported: - - - *resolution*: The number of points of interpolation between - each pair of data points. Set to 1 to disable - interpolation. """ - self.resolution = kwargs.pop('resolution', 1) self._default_theta_offset = kwargs.pop('theta_offset', 0) self._default_theta_direction = kwargs.pop('theta_direction', 1) self._default_rlabel_position = kwargs.pop('rlabel_position', 22.5) - if self.resolution not in (None, 1): - warnings.warn( - """The resolution kwarg to Polar plots is now ignored. -If you need to interpolate data points, consider running -cbook.simple_linear_interpolation on the data before passing to matplotlib.""") Axes.__init__(self, *args, **kwargs) self.set_aspect('equal', adjustable='box', anchor='C') self.cla()