@@ -602,8 +602,6 @@ def set_figure(self, fig):
602
602
"""
603
603
Set the `.Figure` for this `.Axes`.
604
604
605
- .. ACCEPTS: `.Figure`
606
-
607
605
Parameters
608
606
----------
609
607
fig : `.Figure`
@@ -907,14 +905,9 @@ def set_axes_locator(self, locator):
907
905
"""
908
906
Set the axes locator.
909
907
910
- .. ACCEPTS: a callable object which takes an axes instance and
911
- renderer and returns a bbox.
912
-
913
908
Parameters
914
909
----------
915
- locator : callable
916
- A locator function, which takes an axes and a renderer and returns
917
- a bbox.
910
+ locator : Callable[[Axes, Renderer], Bbox]
918
911
"""
919
912
self ._axes_locator = locator
920
913
self .stale = True
@@ -1022,10 +1015,10 @@ def cla(self):
1022
1015
except TypeError :
1023
1016
pass
1024
1017
# update the minor locator for x and y axis based on rcParams
1025
- if ( rcParams ['xtick.minor.visible' ]) :
1018
+ if rcParams ['xtick.minor.visible' ]:
1026
1019
self .xaxis .set_minor_locator (mticker .AutoMinorLocator ())
1027
1020
1028
- if ( rcParams ['ytick.minor.visible' ]) :
1021
+ if rcParams ['ytick.minor.visible' ]:
1029
1022
self .yaxis .set_minor_locator (mticker .AutoMinorLocator ())
1030
1023
1031
1024
if self ._sharex is None :
@@ -1125,9 +1118,8 @@ def get_facecolor(self):
1125
1118
get_fc = get_facecolor
1126
1119
1127
1120
def set_facecolor (self , color ):
1128
- """Set the Axes facecolor.
1129
-
1130
- .. ACCEPTS: color
1121
+ """
1122
+ Set the Axes facecolor.
1131
1123
1132
1124
Parameters
1133
1125
----------
@@ -1314,8 +1306,6 @@ def set_adjustable(self, adjustable, share=False):
1314
1306
If ``True``, apply the settings to all shared Axes.
1315
1307
Default is ``False``.
1316
1308
1317
- .. ACCEPTS: [ 'box' | 'datalim']
1318
-
1319
1309
See Also
1320
1310
--------
1321
1311
matplotlib.axes.Axes.set_aspect
@@ -2132,8 +2122,6 @@ def set_autoscale_on(self, b):
2132
2122
"""
2133
2123
Set whether autoscaling is applied on plot commands
2134
2124
2135
- .. ACCEPTS: bool
2136
-
2137
2125
Parameters
2138
2126
----------
2139
2127
b : bool
@@ -2145,8 +2133,6 @@ def set_autoscalex_on(self, b):
2145
2133
"""
2146
2134
Set whether autoscaling for the x-axis is applied on plot commands
2147
2135
2148
- .. ACCEPTS: bool
2149
-
2150
2136
Parameters
2151
2137
----------
2152
2138
b : bool
@@ -2157,8 +2143,6 @@ def set_autoscaley_on(self, b):
2157
2143
"""
2158
2144
Set whether autoscaling for the y-axis is applied on plot commands
2159
2145
2160
- .. ACCEPTS: bool
2161
-
2162
2146
Parameters
2163
2147
----------
2164
2148
b : bool
@@ -2200,8 +2184,6 @@ def set_xmargin(self, m):
2200
2184
I.e. for a data range [0, 2], a factor of ``m = -0.1`` will result in
2201
2185
a range [0.2, 1.8].
2202
2186
2203
- .. ACCEPTS: float greater than -0.5
2204
-
2205
2187
Parameters
2206
2188
----------
2207
2189
m : float greater than -0.5
@@ -2224,8 +2206,6 @@ def set_ymargin(self, m):
2224
2206
I.e. for a data range [0, 2], a factor of ``m = -0.1`` will result in
2225
2207
a range [0.2, 1.8].
2226
2208
2227
- .. ACCEPTS: float greater than -0.5
2228
-
2229
2209
Parameters
2230
2210
----------
2231
2211
m : float greater than -0.5
@@ -2306,8 +2286,6 @@ def set_rasterization_zorder(self, z):
2306
2286
z : float or None
2307
2287
zorder below which artists are rasterized. ``None`` means that
2308
2288
artists do not get rasterized based on zorder.
2309
-
2310
- .. ACCEPTS: float or None
2311
2289
"""
2312
2290
self ._rasterization_zorder = z
2313
2291
self .stale = True
@@ -2636,8 +2614,6 @@ def set_frame_on(self, b):
2636
2614
"""
2637
2615
Set whether the axes rectangle patch is drawn.
2638
2616
2639
- .. ACCEPTS: bool
2640
-
2641
2617
Parameters
2642
2618
----------
2643
2619
b : bool
@@ -2655,8 +2631,6 @@ def set_axisbelow(self, b):
2655
2631
"""
2656
2632
Set whether axis ticks and gridlines are above or below most artists.
2657
2633
2658
- .. ACCEPTS: [ bool | 'line' ]
2659
-
2660
2634
Parameters
2661
2635
----------
2662
2636
b : bool or 'line'
@@ -3268,11 +3242,9 @@ def set_xticklabels(self, labels, fontdict=None, minor=False, **kwargs):
3268
3242
"""
3269
3243
Set the x-tick labels with list of string labels.
3270
3244
3271
- .. ACCEPTS: list of string labels
3272
-
3273
3245
Parameters
3274
3246
----------
3275
- labels : list of str
3247
+ labels : List[ str]
3276
3248
List of string labels.
3277
3249
3278
3250
fontdict : dict, optional
@@ -3605,11 +3577,9 @@ def set_yticklabels(self, labels, fontdict=None, minor=False, **kwargs):
3605
3577
"""
3606
3578
Set the y-tick labels with list of strings labels.
3607
3579
3608
- .. ACCEPTS: list of string labels
3609
-
3610
3580
Parameters
3611
3581
----------
3612
- labels : list of str
3582
+ labels : List[ str]
3613
3583
list of string labels
3614
3584
3615
3585
fontdict : dict, optional
@@ -3747,8 +3717,6 @@ def set_navigate(self, b):
3747
3717
"""
3748
3718
Set whether the axes responds to navigation toolbar commands
3749
3719
3750
- .. ACCEPTS: bool
3751
-
3752
3720
Parameters
3753
3721
----------
3754
3722
b : bool
0 commit comments