Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13a3da7

Browse files
committed
Remove unused resolution kwarg to PolarAxes
1 parent 5efa5c3 commit 13a3da7

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

lib/matplotlib/projections/__init__.py

Lines 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

Lines 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)