@@ -1100,6 +1100,7 @@ def axvspan(self, xmin, xmax, ymin=0, ymax=1, **kwargs):
1100
1100
self ._request_autoscale_view ("x" )
1101
1101
return p
1102
1102
1103
+ @_api .make_keyword_only ("3.9" ,"label" )
1103
1104
@_preprocess_data (replace_names = ["y" ,"xmin" ,"xmax" ,"colors" ],
1104
1105
label_namer = "y" )
1105
1106
def hlines (self ,y ,xmin ,xmax ,colors = None ,linestyles = 'solid' ,
@@ -1191,6 +1192,7 @@ def hlines(self, y, xmin, xmax, colors=None, linestyles='solid',
1191
1192
self ._request_autoscale_view ()
1192
1193
return lines
1193
1194
1195
+ @_api .make_keyword_only ("3.9" ,"label" )
1194
1196
@_preprocess_data (replace_names = ["x" ,"ymin" ,"ymax" ,"colors" ],
1195
1197
label_namer = "x" )
1196
1198
def vlines (self ,x ,ymin ,ymax ,colors = None ,linestyles = 'solid' ,
@@ -1282,6 +1284,7 @@ def vlines(self, x, ymin, ymax, colors=None, linestyles='solid',
1282
1284
self ._request_autoscale_view ()
1283
1285
return lines
1284
1286
1287
+ @_api .make_keyword_only ("3.9" ,"orientation" )
1285
1288
@_preprocess_data (replace_names = ["positions" ,"lineoffsets" ,
1286
1289
"linelengths" ,"linewidths" ,
1287
1290
"colors" ,"linestyles" ])
@@ -2088,6 +2091,7 @@ def acorr(self, x, **kwargs):
2088
2091
"""
2089
2092
return self .xcorr (x ,x ,** kwargs )
2090
2093
2094
+ @_api .make_keyword_only ("3.9" ,"normed" )
2091
2095
@_preprocess_data (replace_names = ["x" ,"y" ],label_namer = "y" )
2092
2096
def xcorr (self ,x ,y ,normed = True ,detrend = mlab .detrend_none ,
2093
2097
usevlines = True ,maxlags = 10 ,** kwargs ):
@@ -3155,6 +3159,7 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
3155
3159
self .add_container (stem_container )
3156
3160
return stem_container
3157
3161
3162
+ @_api .make_keyword_only ("3.9" ,"explode" )
3158
3163
@_preprocess_data (replace_names = ["x" ,"explode" ,"labels" ,"colors" ])
3159
3164
def pie (self ,x ,explode = None ,labels = None ,colors = None ,
3160
3165
autopct = None ,pctdistance = 0.6 ,shadow = False ,labeldistance = 1.1 ,
@@ -3434,6 +3439,7 @@ def _errorevery_to_mask(x, errorevery):
3434
3439
everymask [errorevery ]= True
3435
3440
return everymask
3436
3441
3442
+ @_api .make_keyword_only ("3.9" ,"ecolor" )
3437
3443
@_preprocess_data (replace_names = ["x" ,"y" ,"xerr" ,"yerr" ],
3438
3444
label_namer = "y" )
3439
3445
@_docstring .dedent_interpd
@@ -3810,6 +3816,7 @@ def apply_mask(arrays, mask):
3810
3816
3811
3817
return errorbar_container # (l0, caplines, barcols)
3812
3818
3819
+ @_api .make_keyword_only ("3.9" ,"notch" )
3813
3820
@_preprocess_data ()
3814
3821
@_api .rename_parameter ("3.9" ,"labels" ,"tick_labels" )
3815
3822
def boxplot (self ,x ,notch = None ,sym = None ,vert = None ,whis = None ,
@@ -4144,6 +4151,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
4144
4151
capwidths = capwidths ,label = label )
4145
4152
return artists
4146
4153
4154
+ @_api .make_keyword_only ("3.9" ,"widths" )
4147
4155
def bxp (self ,bxpstats ,positions = None ,widths = None ,vert = True ,
4148
4156
patch_artist = False ,shownotches = False ,showmeans = False ,
4149
4157
showcaps = True ,showbox = True ,showfliers = True ,
@@ -4636,6 +4644,7 @@ def invalid_shape_exception(csize, xsize):
4636
4644
colors = None # use cmap, norm after collection is created
4637
4645
return c ,colors ,edgecolors
4638
4646
4647
+ @_api .make_keyword_only ("3.9" ,"marker" )
4639
4648
@_preprocess_data (replace_names = ["x" ,"y" ,"s" ,"linewidths" ,
4640
4649
"edgecolors" ,"c" ,"facecolor" ,
4641
4650
"facecolors" ,"color" ],
@@ -4916,6 +4925,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
4916
4925
4917
4926
return collection
4918
4927
4928
+ @_api .make_keyword_only ("3.9" ,"gridsize" )
4919
4929
@_preprocess_data (replace_names = ["x" ,"y" ,"C" ],label_namer = "y" )
4920
4930
@_docstring .dedent_interpd
4921
4931
def hexbin (self ,x ,y ,C = None ,gridsize = 100 ,bins = None ,
@@ -6698,6 +6708,7 @@ def clabel(self, CS, levels=None, **kwargs):
6698
6708
6699
6709
#### Data analysis
6700
6710
6711
+ @_api .make_keyword_only ("3.9" ,"range" )
6701
6712
@_preprocess_data (replace_names = ["x" ,'weights' ],label_namer = "x" )
6702
6713
def hist (self ,x ,bins = None ,range = None ,density = False ,weights = None ,
6703
6714
cumulative = False ,bottom = None ,histtype = 'bar' ,align = 'mid' ,
@@ -7245,6 +7256,7 @@ def stairs(self, values, edges=None, *,
7245
7256
self ._request_autoscale_view ()
7246
7257
return patch
7247
7258
7259
+ @_api .make_keyword_only ("3.9" ,"range" )
7248
7260
@_preprocess_data (replace_names = ["x" ,"y" ,"weights" ])
7249
7261
@_docstring .dedent_interpd
7250
7262
def hist2d (self ,x ,y ,bins = 10 ,range = None ,density = False ,weights = None ,
@@ -7454,6 +7466,7 @@ def ecdf(self, x, weights=None, *, complementary=False,
7454
7466
line .sticky_edges .x [:]= [0 ,1 ]
7455
7467
return line
7456
7468
7469
+ @_api .make_keyword_only ("3.9" ,"NFFT" )
7457
7470
@_preprocess_data (replace_names = ["x" ])
7458
7471
@_docstring .dedent_interpd
7459
7472
def psd (self ,x ,NFFT = None ,Fs = None ,Fc = None ,detrend = None ,
@@ -7565,6 +7578,7 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
7565
7578
else :
7566
7579
return pxx ,freqs ,line
7567
7580
7581
+ @_api .make_keyword_only ("3.9" ,"NFFT" )
7568
7582
@_preprocess_data (replace_names = ["x" ,"y" ],label_namer = "y" )
7569
7583
@_docstring .dedent_interpd
7570
7584
def csd (self ,x ,y ,NFFT = None ,Fs = None ,Fc = None ,detrend = None ,
@@ -7667,6 +7681,7 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
7667
7681
else :
7668
7682
return pxy ,freqs ,line
7669
7683
7684
+ @_api .make_keyword_only ("3.9" ,"Fs" )
7670
7685
@_preprocess_data (replace_names = ["x" ])
7671
7686
@_docstring .dedent_interpd
7672
7687
def magnitude_spectrum (self ,x ,Fs = None ,Fc = None ,window = None ,
@@ -7753,6 +7768,7 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
7753
7768
7754
7769
return spec ,freqs ,line
7755
7770
7771
+ @_api .make_keyword_only ("3.9" ,"Fs" )
7756
7772
@_preprocess_data (replace_names = ["x" ])
7757
7773
@_docstring .dedent_interpd
7758
7774
def angle_spectrum (self ,x ,Fs = None ,Fc = None ,window = None ,
@@ -7822,6 +7838,7 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
7822
7838
7823
7839
return spec ,freqs ,lines [0 ]
7824
7840
7841
+ @_api .make_keyword_only ("3.9" ,"Fs" )
7825
7842
@_preprocess_data (replace_names = ["x" ])
7826
7843
@_docstring .dedent_interpd
7827
7844
def phase_spectrum (self ,x ,Fs = None ,Fc = None ,window = None ,
@@ -7891,6 +7908,7 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
7891
7908
7892
7909
return spec ,freqs ,lines [0 ]
7893
7910
7911
+ @_api .make_keyword_only ("3.9" ,"NFFT" )
7894
7912
@_preprocess_data (replace_names = ["x" ,"y" ])
7895
7913
@_docstring .dedent_interpd
7896
7914
def cohere (self ,x ,y ,NFFT = 256 ,Fs = 2 ,Fc = 0 ,detrend = mlab .detrend_none ,
@@ -7955,6 +7973,7 @@ def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
7955
7973
7956
7974
return cxy ,freqs
7957
7975
7976
+ @_api .make_keyword_only ("3.9" ,"NFFT" )
7958
7977
@_preprocess_data (replace_names = ["x" ])
7959
7978
@_docstring .dedent_interpd
7960
7979
def specgram (self ,x ,NFFT = None ,Fs = None ,Fc = None ,detrend = None ,
@@ -8111,6 +8130,7 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
8111
8130
8112
8131
return spec ,freqs ,t ,im
8113
8132
8133
+ @_api .make_keyword_only ("3.9" ,"precision" )
8114
8134
@_docstring .dedent_interpd
8115
8135
def spy (self ,Z ,precision = 0 ,marker = None ,markersize = None ,
8116
8136
aspect = 'equal' ,origin = "upper" ,** kwargs ):
@@ -8301,6 +8321,7 @@ def matshow(self, Z, **kwargs):
8301
8321
mticker .MaxNLocator (nbins = 9 ,steps = [1 ,2 ,5 ,10 ],integer = True ))
8302
8322
return im
8303
8323
8324
+ @_api .make_keyword_only ("3.9" ,"vert" )
8304
8325
@_preprocess_data (replace_names = ["dataset" ])
8305
8326
def violinplot (self ,dataset ,positions = None ,vert = True ,widths = 0.5 ,
8306
8327
showmeans = False ,showextrema = True ,showmedians = False ,
@@ -8412,6 +8433,7 @@ def _kde_method(X, coords):
8412
8433
widths = widths ,showmeans = showmeans ,
8413
8434
showextrema = showextrema ,showmedians = showmedians ,side = side )
8414
8435
8436
+ @_api .make_keyword_only ("3.9" ,"vert" )
8415
8437
def violin (self ,vpstats ,positions = None ,vert = True ,widths = 0.5 ,
8416
8438
showmeans = False ,showextrema = True ,showmedians = False ,side = 'both' ):
8417
8439
"""