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

Skip to content

Commit f7e50de

Browse files
committed
Add deprecation for Axes.set_thetagrids(frac).
1 parent 5ec960b commit f7e50de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/projections/polar.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,11 @@ def set_thetagrids(self, angles, labels=None, frac=None, fmt=None,
11731173
11741174
ACCEPTS: sequence of floats
11751175
"""
1176+
if frac is not None:
1177+
cbook.warn_deprecated('2.1', name='frac', obj_type='parameter',
1178+
alternative='tick padding via '
1179+
'Axes.tick_params')
1180+
11761181
# Make sure we take into account unitized data
11771182
angles = self.convert_yunits(angles)
11781183
angles = np.asarray(angles, float)

0 commit comments

Comments
 (0)