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

Skip to content

Commit 592df36

Browse files
committed
Add note on wrapping
1 parent 66f03a3 commit 592df36

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/matplotlib/projections/polar.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ def get_thetamin(self):
10071007
return np.rad2deg(self.viewLim.xmin)
10081008

10091009
def set_thetalim(self, *args, **kwargs):
1010-
"""
1010+
r"""
10111011
Set the minimum and maximum theta values.
10121012
10131013
Can take the following signatures:
@@ -1016,7 +1016,10 @@ def set_thetalim(self, *args, **kwargs):
10161016
- ``set_thetalim(thetamin=minval, thetamax=maxval)``: Set the limits
10171017
in degrees.
10181018
1019-
where minval and maxval are the minimum and maximum limits.
1019+
where minval and maxval are the minimum and maximum limits. Values are
1020+
wrapped in to the range :math:`[0, 2\pi]` (in radians), so for example
1021+
it is possible to do ``set_thetalim(-np.pi / 2, np.pi / 2)`` to have
1022+
an axes symmetric around 0.
10201023
"""
10211024
if 'thetamin' in kwargs:
10221025
kwargs['xmin'] = np.deg2rad(kwargs.pop('thetamin'))

0 commit comments

Comments
 (0)