Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Remove unused resolution kwarg to PolarAxes #8643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions 6 doc/api/api_changes/2017-05-19-resolution_polar_axes.rst
Original file line number Diff line number Diff line change
@@ -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`.
5 changes: 0 additions & 5 deletions 5 lib/matplotlib/projections/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down
12 changes: 0 additions & 12 deletions 12 lib/matplotlib/projections/polar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.