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

Skip to content

Commit 70d0bf7

Browse files
authored
Merge pull request #29708 from rcomer/deprecation-version-correction
MNT: correct version in plotting method deprecation warnings
2 parents 535ebee + 5eecad3 commit 70d0bf7

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ def axvspan(self, xmin, xmax, ymin=0, ymax=1, **kwargs):
10901090
self._request_autoscale_view("x")
10911091
return p
10921092

1093-
@_api.make_keyword_only("3.9", "label")
1093+
@_api.make_keyword_only("3.10", "label")
10941094
@_preprocess_data(replace_names=["y", "xmin", "xmax", "colors"],
10951095
label_namer="y")
10961096
def hlines(self, y, xmin, xmax, colors=None, linestyles='solid',
@@ -1182,7 +1182,7 @@ def hlines(self, y, xmin, xmax, colors=None, linestyles='solid',
11821182
self._request_autoscale_view()
11831183
return lines
11841184

1185-
@_api.make_keyword_only("3.9", "label")
1185+
@_api.make_keyword_only("3.10", "label")
11861186
@_preprocess_data(replace_names=["x", "ymin", "ymax", "colors"],
11871187
label_namer="x")
11881188
def vlines(self, x, ymin, ymax, colors=None, linestyles='solid',
@@ -1274,7 +1274,7 @@ def vlines(self, x, ymin, ymax, colors=None, linestyles='solid',
12741274
self._request_autoscale_view()
12751275
return lines
12761276

1277-
@_api.make_keyword_only("3.9", "orientation")
1277+
@_api.make_keyword_only("3.10", "orientation")
12781278
@_preprocess_data(replace_names=["positions", "lineoffsets",
12791279
"linelengths", "linewidths",
12801280
"colors", "linestyles"])
@@ -2000,7 +2000,7 @@ def acorr(self, x, **kwargs):
20002000
"""
20012001
return self.xcorr(x, x, **kwargs)
20022002

2003-
@_api.make_keyword_only("3.9", "normed")
2003+
@_api.make_keyword_only("3.10", "normed")
20042004
@_preprocess_data(replace_names=["x", "y"], label_namer="y")
20052005
def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
20062006
usevlines=True, maxlags=10, **kwargs):
@@ -3160,7 +3160,7 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
31603160
self.add_container(stem_container)
31613161
return stem_container
31623162

3163-
@_api.make_keyword_only("3.9", "explode")
3163+
@_api.make_keyword_only("3.10", "explode")
31643164
@_preprocess_data(replace_names=["x", "explode", "labels", "colors"])
31653165
def pie(self, x, explode=None, labels=None, colors=None,
31663166
autopct=None, pctdistance=0.6, shadow=False, labeldistance=1.1,
@@ -3440,7 +3440,7 @@ def _errorevery_to_mask(x, errorevery):
34403440
everymask[errorevery] = True
34413441
return everymask
34423442

3443-
@_api.make_keyword_only("3.9", "ecolor")
3443+
@_api.make_keyword_only("3.10", "ecolor")
34443444
@_preprocess_data(replace_names=["x", "y", "xerr", "yerr"],
34453445
label_namer="y")
34463446
@_docstring.interpd
@@ -3817,7 +3817,7 @@ def apply_mask(arrays, mask):
38173817

38183818
return errorbar_container # (l0, caplines, barcols)
38193819

3820-
@_api.make_keyword_only("3.9", "notch")
3820+
@_api.make_keyword_only("3.10", "notch")
38213821
@_preprocess_data()
38223822
@_api.rename_parameter("3.9", "labels", "tick_labels")
38233823
def boxplot(self, x, notch=None, sym=None, vert=None,
@@ -4155,7 +4155,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None,
41554155
orientation=orientation)
41564156
return artists
41574157

4158-
@_api.make_keyword_only("3.9", "widths")
4158+
@_api.make_keyword_only("3.10", "widths")
41594159
def bxp(self, bxpstats, positions=None, widths=None, vert=None,
41604160
orientation='vertical', patch_artist=False, shownotches=False,
41614161
showmeans=False, showcaps=True, showbox=True, showfliers=True,
@@ -4689,7 +4689,7 @@ def invalid_shape_exception(csize, xsize):
46894689
colors = None # use cmap, norm after collection is created
46904690
return c, colors, edgecolors
46914691

4692-
@_api.make_keyword_only("3.9", "marker")
4692+
@_api.make_keyword_only("3.10", "marker")
46934693
@_preprocess_data(replace_names=["x", "y", "s", "linewidths",
46944694
"edgecolors", "c", "facecolor",
46954695
"facecolors", "color"],
@@ -4985,7 +4985,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
49854985

49864986
return collection
49874987

4988-
@_api.make_keyword_only("3.9", "gridsize")
4988+
@_api.make_keyword_only("3.10", "gridsize")
49894989
@_preprocess_data(replace_names=["x", "y", "C"], label_namer="y")
49904990
@_docstring.interpd
49914991
def hexbin(self, x, y, C=None, gridsize=100, bins=None,
@@ -6733,7 +6733,7 @@ def clabel(self, CS, levels=None, **kwargs):
67336733

67346734
#### Data analysis
67356735

6736-
@_api.make_keyword_only("3.9", "range")
6736+
@_api.make_keyword_only("3.10", "range")
67376737
@_preprocess_data(replace_names=["x", 'weights'], label_namer="x")
67386738
def hist(self, x, bins=None, range=None, density=False, weights=None,
67396739
cumulative=False, bottom=None, histtype='bar', align='mid',
@@ -7325,7 +7325,7 @@ def stairs(self, values, edges=None, *,
73257325
self._request_autoscale_view()
73267326
return patch
73277327

7328-
@_api.make_keyword_only("3.9", "range")
7328+
@_api.make_keyword_only("3.10", "range")
73297329
@_preprocess_data(replace_names=["x", "y", "weights"])
73307330
@_docstring.interpd
73317331
def hist2d(self, x, y, bins=10, range=None, density=False, weights=None,
@@ -7537,7 +7537,7 @@ def ecdf(self, x, weights=None, *, complementary=False,
75377537
line.sticky_edges.x[:] = [0, 1]
75387538
return line
75397539

7540-
@_api.make_keyword_only("3.9", "NFFT")
7540+
@_api.make_keyword_only("3.10", "NFFT")
75417541
@_preprocess_data(replace_names=["x"])
75427542
@_docstring.interpd
75437543
def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
@@ -7649,7 +7649,7 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
76497649
else:
76507650
return pxx, freqs, line
76517651

7652-
@_api.make_keyword_only("3.9", "NFFT")
7652+
@_api.make_keyword_only("3.10", "NFFT")
76537653
@_preprocess_data(replace_names=["x", "y"], label_namer="y")
76547654
@_docstring.interpd
76557655
def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
@@ -7752,7 +7752,7 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
77527752
else:
77537753
return pxy, freqs, line
77547754

7755-
@_api.make_keyword_only("3.9", "Fs")
7755+
@_api.make_keyword_only("3.10", "Fs")
77567756
@_preprocess_data(replace_names=["x"])
77577757
@_docstring.interpd
77587758
def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
@@ -7839,7 +7839,7 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
78397839

78407840
return spec, freqs, line
78417841

7842-
@_api.make_keyword_only("3.9", "Fs")
7842+
@_api.make_keyword_only("3.10", "Fs")
78437843
@_preprocess_data(replace_names=["x"])
78447844
@_docstring.interpd
78457845
def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
@@ -7909,7 +7909,7 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
79097909

79107910
return spec, freqs, lines[0]
79117911

7912-
@_api.make_keyword_only("3.9", "Fs")
7912+
@_api.make_keyword_only("3.10", "Fs")
79137913
@_preprocess_data(replace_names=["x"])
79147914
@_docstring.interpd
79157915
def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
@@ -7979,7 +7979,7 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
79797979

79807980
return spec, freqs, lines[0]
79817981

7982-
@_api.make_keyword_only("3.9", "NFFT")
7982+
@_api.make_keyword_only("3.10", "NFFT")
79837983
@_preprocess_data(replace_names=["x", "y"])
79847984
@_docstring.interpd
79857985
def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
@@ -8044,7 +8044,7 @@ def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
80448044

80458045
return cxy, freqs
80468046

8047-
@_api.make_keyword_only("3.9", "NFFT")
8047+
@_api.make_keyword_only("3.10", "NFFT")
80488048
@_preprocess_data(replace_names=["x"])
80498049
@_docstring.interpd
80508050
def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
@@ -8206,7 +8206,7 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
82068206

82078207
return spec, freqs, t, im
82088208

8209-
@_api.make_keyword_only("3.9", "precision")
8209+
@_api.make_keyword_only("3.10", "precision")
82108210
@_docstring.interpd
82118211
def spy(self, Z, precision=0, marker=None, markersize=None,
82128212
aspect='equal', origin="upper", **kwargs):
@@ -8397,7 +8397,7 @@ def matshow(self, Z, **kwargs):
83978397
mticker.MaxNLocator(nbins=9, steps=[1, 2, 5, 10], integer=True))
83988398
return im
83998399

8400-
@_api.make_keyword_only("3.9", "vert")
8400+
@_api.make_keyword_only("3.10", "vert")
84018401
@_preprocess_data(replace_names=["dataset"])
84028402
def violinplot(self, dataset, positions=None, vert=None,
84038403
orientation='vertical', widths=0.5, showmeans=False,
@@ -8536,7 +8536,7 @@ def _kde_method(X, coords):
85368536
showmedians=showmedians, side=side,
85378537
facecolor=facecolor, linecolor=linecolor)
85388538

8539-
@_api.make_keyword_only("3.9", "vert")
8539+
@_api.make_keyword_only("3.10", "vert")
85408540
def violin(self, vpstats, positions=None, vert=None,
85418541
orientation='vertical', widths=0.5, showmeans=False,
85428542
showextrema=True, showmedians=False, side='both',

0 commit comments

Comments
 (0)