File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
lib/matplotlib/projections Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -1022,6 +1022,16 @@ def get_thetamin(self):
1022
1022
return np .rad2deg (self .viewLim .xmin )
1023
1023
1024
1024
def set_thetalim (self , * args , ** kwargs ):
1025
+ """
1026
+ Set the minimum and maximum theta values.
1027
+
1028
+ Parameters
1029
+ ----------
1030
+ thetamin : float
1031
+ Minimum value in degrees.
1032
+ thetamax : float
1033
+ Maximum value in degrees.
1034
+ """
1025
1035
if 'thetamin' in kwargs :
1026
1036
kwargs ['xmin' ] = np .deg2rad (kwargs .pop ('thetamin' ))
1027
1037
if 'thetamax' in kwargs :
@@ -1100,21 +1110,59 @@ def get_theta_direction(self):
1100
1110
return self ._direction .get_matrix ()[0 , 0 ]
1101
1111
1102
1112
def set_rmax (self , rmax ):
1113
+ """
1114
+ Set the outer radial limit.
1115
+
1116
+ Parameters
1117
+ ----------
1118
+ rmax : float
1119
+ """
1103
1120
self .viewLim .y1 = rmax
1104
1121
1105
1122
def get_rmax (self ):
1123
+ """
1124
+ Returns
1125
+ -------
1126
+ float
1127
+ Outer radial limit.
1128
+ """
1106
1129
return self .viewLim .ymax
1107
1130
1108
1131
def set_rmin (self , rmin ):
1132
+ """
1133
+ Set the inner radial limit.
1134
+
1135
+ Parameters
1136
+ ----------
1137
+ rmin : float
1138
+ """
1109
1139
self .viewLim .y0 = rmin
1110
1140
1111
1141
def get_rmin (self ):
1142
+ """
1143
+ Returns
1144
+ -------
1145
+ float
1146
+ The inner radial limit.
1147
+ """
1112
1148
return self .viewLim .ymin
1113
1149
1114
1150
def set_rorigin (self , rorigin ):
1151
+ """
1152
+ Update the radial origin.
1153
+
1154
+ Parameters
1155
+ ----------
1156
+ rorigin : float
1157
+ """
1115
1158
self ._originViewLim .locked_y0 = rorigin
1116
1159
1117
1160
def get_rorigin (self ):
1161
+ """
1162
+ Returns
1163
+ -------
1164
+ float
1165
+ """
1118
1166
return self ._originViewLim .y0
1119
1167
1120
1168
def get_rsign (self ):
You can’t perform that action at this time.
0 commit comments