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

Commit 2a631da

Browse filesBrowse files
authored
Merge pull request #8643 from patniharshit/resolution
Remove unused resolution kwarg to PolarAxes
2 parents 62e8084 + b7473eb commit 2a631da
Copy full SHA for 2a631da

File tree

Expand file treeCollapse file tree

3 files changed

+6
-17
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+6
-17
lines changed
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Removed resolution kwarg from PolarAxes
2+
```````````````````````````````````````
3+
4+
The kwarg `resolution` of `matplotlib.projections.polar.PolarAxes` has been
5+
removed. It has triggered a deprecation warning of being with no effect
6+
beyond version `0.98.x`.

‎lib/matplotlib/projections/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/projections/__init__.py
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ def process_projection_requirements(figure, *args, **kwargs):
8787
projection)
8888
projection = 'polar'
8989

90-
# ensure that the resolution keyword is always put into the key
91-
# for polar plots
92-
if projection == 'polar':
93-
kwargs.setdefault('resolution', 1)
94-
9590
if isinstance(projection, six.string_types) or projection is None:
9691
projection_class = get_projection_class(projection)
9792
elif hasattr(projection, '_as_mpl_axes'):

‎lib/matplotlib/projections/polar.py

Copy file name to clipboardExpand all lines: lib/matplotlib/projections/polar.py
-12Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -227,23 +227,11 @@ class PolarAxes(Axes):
227227
def __init__(self, *args, **kwargs):
228228
"""
229229
Create a new Polar Axes for a polar plot.
230-
231-
The following optional kwargs are supported:
232-
233-
- *resolution*: The number of points of interpolation between
234-
each pair of data points. Set to 1 to disable
235-
interpolation.
236230
"""
237-
self.resolution = kwargs.pop('resolution', 1)
238231
self._default_theta_offset = kwargs.pop('theta_offset', 0)
239232
self._default_theta_direction = kwargs.pop('theta_direction', 1)
240233
self._default_rlabel_position = kwargs.pop('rlabel_position', 22.5)
241234

242-
if self.resolution not in (None, 1):
243-
warnings.warn(
244-
"""The resolution kwarg to Polar plots is now ignored.
245-
If you need to interpolate data points, consider running
246-
cbook.simple_linear_interpolation on the data before passing to matplotlib.""")
247235
Axes.__init__(self, *args, **kwargs)
248236
self.set_aspect('equal', adjustable='box', anchor='C')
249237
self.cla()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.