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

Skip to content

Commit 5cc88c7

Browse files
authored
Merge pull request #16518 from meeseeksmachine/auto-backport-of-pr-16502-on-v3.2.x
Backport PR #16502 on branch v3.2.x (Document theta getters/setters)
2 parents 308f2c2 + 7f85b70 commit 5cc88c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/projections/polar.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,15 +1016,19 @@ def _gen_axes_spines(self):
10161016
return spines
10171017

10181018
def set_thetamax(self, thetamax):
1019+
"""Set the maximum theta limit in degrees."""
10191020
self.viewLim.x1 = np.deg2rad(thetamax)
10201021

10211022
def get_thetamax(self):
1023+
"""Return the maximum theta limit in degrees."""
10221024
return np.rad2deg(self.viewLim.xmax)
10231025

10241026
def set_thetamin(self, thetamin):
1027+
"""Set the minimum theta limit in degrees."""
10251028
self.viewLim.x0 = np.deg2rad(thetamin)
10261029

10271030
def get_thetamin(self):
1031+
"""Get the minimum theta limit in degrees."""
10281032
return np.rad2deg(self.viewLim.xmin)
10291033

10301034
def set_thetalim(self, *args, **kwargs):

0 commit comments

Comments
 (0)