8000 Backport PR #16502: Document theta getters/setters · meeseeksmachine/matplotlib@7f85b70 · GitHub
[go: up one dir, main page]

< 8000 a href="#start-of-content" data-skip-target-assigned="false" class="px-2 py-4 color-bg-accent-emphasis color-fg-on-emphasis show-on-focus js-skip-to-content">Skip to content

Commit 7f85b70

Browse files
anntzermeeseeksmachine
authored andcommitted
Backport PR matplotlib#16502: Document theta getters/setters
1 parent 532c9f3 commit 7f85b70

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