File tree Expand file tree Collapse file tree
lib/matplotlib/projections Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -975,15 +975,19 @@ def get_thetamin(self):
975975 return np .rad2deg (self .viewLim .xmin )
976976
977977 def set_thetalim (self , * args , ** kwargs ):
978- """
978+ r """
979979 Set the minimum and maximum theta values.
980980
981- Parameters
982- ----------
983- thetamin : float
984- Minimum value in degrees.
985- thetamax : float
986- Maximum value in degrees.
981+ Can take the following signatures:
982+
983+ - ``set_thetalim(minval, maxval)``: Set the limits in radians.
984+ - ``set_thetalim(thetamin=minval, thetamax=maxval)``: Set the limits
985+ in degrees.
986+
987+ where minval and maxval are the minimum and maximum limits. Values are
988+ wrapped in to the range :math:`[0, 2\pi]` (in radians), so for example
989+ it is possible to do ``set_thetalim(-np.pi / 2, np.pi / 2)`` to have
990+ an axes symmetric around 0.
987991 """
988992 if 'thetamin' in kwargs :
989993 kwargs ['xmin' ] = np .deg2rad (kwargs .pop ('thetamin' ))
You can’t perform that action at this time.
0 commit comments