8000 Backport PR #29708: MNT: correct version in plotting method deprecati… · meeseeksmachine/matplotlib@7bbf261 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7bbf261

Browse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR matplotlib#29708: MNT: correct version in plotting method deprecation warnings
1 parent b6f6e27 commit 7bbf261

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
@@ -1095,7 +1095,7 @@ def axvspan(self, xmin, xmax, ymin=0, ymax=1, **kwargs):
10951095
self._request_autoscale_view("x")
10961096
return p
10971097

1098-
@_api.make_keyword_only("3.9", "label")
1098+
@_api.make_keyword_only("3.10", "label")
10991099
@_preprocess_data(replace_names=["y", "xmin", "xmax", "colors"],
11001100
label_namer="y")
11011101
def hlines(self, y, xmin, xmax, colors=None, linestyles='solid',
@@ -1187,7 +1187,7 @@ def hlines(self, y, xmin, xmax, colors=None, linestyles='solid',
11871187
self._request_autoscale_view()
11881188
return lines
11891189

1190-
@_api.make_keyword_only("3.9", "label")
1190+
@_api.make_keyword_only("3.10", "label")
11911191
@_preprocess_data(replace_names=["x", "ymin", "ymax", "colors"],
11921192
label_namer="x")
11931193
def vlines(self, x, ymin, ymax, colors=None, linestyles='solid',
@@ -1279,7 +1279,7 @@ def vlines(self, x, ymin, ymax, colors=None, linestyles='solid',
12791279
self._request_autoscale_view()
12801280
return lines
12811281

1282-
@_api.make_keyword_only("3.9", "orientation")
1282+
@_api.make_keyword_only("3.10", "orientation")
12831283
@_preprocess_data(replace_names=["positions", "lineoffsets",
12841284
"linelengths", "linewidths",
12851285
"colors", "linestyles"])
@@ -2086,7 +2086,7 @@ def acorr(self, x, **kwargs):
20862086
"""
20872087
return self.xcorr(x, x, **kwargs)
20882088

2089-
@_api.make_keyword_only("3.9", "normed")
2089+
@_api.make_keyword_only("3.10", "normed")
20902090
@_preprocess_data(replace_names=["x", "y"], label_namer="y")
20912091
def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
20922092
usevlines=True, maxlags=10, **kwargs):
@@ -3229,7 +3229,7 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
32293229
self.add_container(stem_container)
32303230
return stem_container
32313231

3232-
@_api.make_keyword_only("3.9", "explode")
3232+
@_api.make_keyword_only("3.10", "explode")
32333233
@_preprocess_data(replace_names=["x", "explode", "labels", "colors"])
32343234
def pie(self, x, explode=None, labels=None, colors=None,
32353235
autopct=None, pctdistance=0.6, shadow=False, labeldistance=1.1,
@@ -3509,7 +3509,7 @@ def _errorevery_to_mask(x, errorevery):
35093509
everymask[errorevery] = True
35103510
return everymask
35113511

3512-
@_api.make_keyword_only("3.9", "ecolor")
3512+
@_api.make_keyword_only("3.10", "ecolor")
35133513
@_preprocess_data(replace_names=["x", "y", "xerr", "yerr"],
35143514
label_namer="y")
35153515
@_docstring.interpd
@@ -3887,7 +3887,7 @@ def apply_mask(arrays, mask):
38873887

38883888
return errorbar_container # (l0, caplines, barcols)
38893889

3890-
@_api.make_keyword_only("3.9", "notch")
3890+
@_api.make_keyword_only("3.10", "notch")
38913891
@_preprocess_data()
38923892
@_api.rename_parameter("3.9", "labels", "tick_labels")
38933893
def boxplot(self, x, notch=None, sym=None, vert=None,
@@ -4236,7 +4236,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None,
42364236
orientation=orientation)
42374237
return artists
42384238

4239-
@_api.make_keyword_only("3.9", "widths")
4239+
@_api.make_keyword_only("3.10", "widths")
42404240
def bxp(self, bxpstats, positions=None, widths=None, vert=None,
42414241
orientation='vertical', patch_artist=False, shownotches=False,
42424242
showmeans=False, showcaps=True, showbox=True, showfliers=True,
@@ -4773,7 +4773,7 @@ def invalid_shape_exception(csize, xsize):
47734773
colors = None # use cmap, norm after collection is created
47744774
return c, colors, edgecolors
47754775

4776-
@_api.make_keyword_only("3.9", "marker")
4776+
@_api.make_keyword_only("3.10", "marker")
47774777
@_preprocess_data(replace_names=["x", "y", "s", "linewidths",
47784778
"edgecolors", "c", "facecolor",
47794779
"facecolors", "color"],
@@ -5064,7 +5064,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
50645064

50655065
return collection
50665066

5067-
@_api.make_keyword_only("3.9", "gridsize")
5067+
@_api.make_keyword_only("3.10", "gridsize")
50685068
@_preprocess_data(replace_names=["x", "y", "C"], label_namer="y")
50695069
@_docstring.interpd
50705070
def hexbin(self, x, y, C=None, gridsize=100, bins=None,
@@ -6814,7 +6814,7 @@ def clabel(self, CS, levels=None, **kwargs):
68146814

68156815
#### Data analysis
68166816

6817-
@_api.make_keyword_only("3.9", "range")
6817+
@_api.make_keyword_only("3.10", "range")
68186818
@_preprocess_data(replace_names=["x", 'weights'], label_namer="x")
68196819
def hist(self, x, bins=None, range=None, density=False, weights=None,
68206820
cumulative=False, bottom=None, histtype='bar', align='mid',
@@ -7405,7 +7405,7 @@ def stairs(self, values, edges=None, *,
74057405
self._request_autoscale_view()
74067406
return patch
74077407

7408-
@_api.make_keyword_only("3.9", "range")
7408+
@_api.make_keyword_only("3.10", "range")
74097409
@_preprocess_data(replace_names=["x", "y", "weights"])
74107410
@_docstring.interpd
74117411
def hist2d(self, x, y, bins=10, range=None, density=False, weights=None,
@@ -7617,7 +7617,7 @@ def ecdf(self, x, weights=None, *, complementary=False,
76177617
line.sticky_edges.x[:] = [0, 1]
76187618
return line
76197619

7620-
@_api.make_keyword_only("3.9", "NFFT")
7620+
@_api.make_keyword_only("3.10", "NFFT")
76217621
@_preprocess_data(replace_names=["x"])
76227622
@_docstring.interpd
76237623
def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
@@ -7729,7 +7729,7 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
77297729
else:
77307730
return pxx, freqs, line
77317731

7732-
@_api.make_keyword_only("3.9", "NFFT")
7732+
@_api.make_keyword_only("3.10", "NFFT")
77337733
@_preprocess_data(replace_names=["x", "y"], label_namer="y")
77347734
@_docstring.interpd
77357735
def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
@@ -7832,7 +7832,7 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
78327832
else:
78337833
return pxy, freqs, line
78347834

7835-
@_api.make_keyword_only("3.9", "Fs")
7835+
@_api.make_keyword_only("3.10", "Fs")
78367836
@_preprocess_data(replace_names=["x"])
78377837
@_docstring.interpd
78387838
def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
@@ -7919,7 +7919,7 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
79197919

79207920
return spec, freqs, line
79217921

7922-
@_api.make_keyword_only("3.9", "Fs")
7922+
@_api.make_keyword_only("3.10", "Fs")
79237923
@_preprocess_data(replace_names=["x"])
79247924
@_docstring.interpd
79257925
def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
@@ -7989,7 +7989,7 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
79897989

79907990
return spec, freqs, lines[0]
79917991

7992-
@_api.make_keyword_only("3.9", "Fs")
7992+
@_api.make_keyword_only("3.10", "Fs")
79937993
@_preprocess_data(replace_names=["x"])
79947994
@_docstring.interpd
79957995
def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
@@ -8059,7 +8059,7 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
80598059

80608060
return spec, freqs, lines[0]
80618061

8062-
@_api.make_keyword_only("3.9", "NFFT")
8062+
@_api.make_keyword_only("3.10", "NFFT")
80638063
@_preprocess_data(replace_names=["x", "y"])
80648064
@_docstring.interpd
80658065
def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
@@ -8124,7 +8124,7 @@ def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
81248124

81258125
return cxy, freqs
81268126

8127-
@_api.make_keyword_only("3.9", "NFFT")
8127+
@_api.make_keyword_only("3.10", "NFFT")
81288128
@_preprocess_data(replace_names=["x"])
81298129
@_docstring.interpd
81308130
def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
@@ -8286,7 +8286,7 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
82868286

82878287
return spec, freqs, t, im
82888288

8289-
@_api.make_keyword_only("3.9", "precision")
8289+
@_api.make_keyword_only("3.10", "precision")
82908290
@_docstring.interpd
82918291
def spy(self, Z, precision=0, marker=None, markersize=None,
82928292
aspect='equal', origin="upper", **kwargs):
@@ -8477,7 +8477,7 @@ def matshow(self, Z, **kwargs):
84778477
mticker.MaxNLocator(nbins=9, steps=[1, 2, 5, 10], integer=True))
84788478
return im
84798479

8480-
@_api.make_keyword_only("3.9", "vert")
8480+
@_api.make_keyword_only("3.10", "vert")
84818481
@_preprocess_data(replace_names=["dataset"])
84828482
def violinplot(self, dataset, positions=None, vert=None,
84838483
orientation='vertical', widths=0.5, showmeans=False,
@@ -8603,7 +8603,7 @@ def _kde_method(X, coords):
86038603
showmeans=showmeans, showextrema=showextrema,
86048604
showmedians=showmedians, side=side)
86058605

8606-
@_api.make_keyword_only("3.9", "vert")
8606+
@_api.make_keyword_only("3.10", "vert")
86078607
def violin(self, vpstats, positions=None, vert=None,
86088608
orientation='vertical', widths=0.5, showmeans=False,
86098609
showextrema=True, showmedians=False, side='both'):

0 commit comments

Comments
 (0)
0