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

Skip to content

Commit 68e6532

Browse files
committed
Merge pull request #7296 from NelleV/main_remove_docstring_dedent_when_possible
MAINT removing docstring dedent_interpd when possible
1 parent 0da61ef commit 68e6532

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def get_title(self, loc="center"):
135135
raise ValueError("'%s' is not a valid location" % loc)
136136
return title.get_text()
137137

138-
@docstring.dedent_interpd
139138
def set_title(self, label, fontdict=None, loc="center", **kwargs):
140139
"""
141140
Set a title for the axes.
@@ -198,7 +197,6 @@ def get_xlabel(self):
198197
label = self.xaxis.get_label()
199198
return label.get_text()
200199

201-
@docstring.dedent_interpd
202200
def set_xlabel(self, xlabel, fontdict=None, labelpad=None, **kwargs):
203201
"""
204202
Set the label for the xaxis.
@@ -230,7 +228,6 @@ def get_ylabel(self):
230228
label = self.yaxis.get_label()
231229
return label.get_text()
232230

233-
@docstring.dedent_interpd
234231
def set_ylabel(self, ylabel, fontdict=None, labelpad=None, **kwargs):
235232
"""
236233
Set the label for the yaxis
@@ -857,7 +854,6 @@ def axhspan(self, ymin, ymax, xmin=0, xmax=1, **kwargs):
857854
self.autoscale_view(scalex=False)
858855
return p
859856

860-
@docstring.dedent_interpd
861857
def axvspan(self, xmin, xmax, ymin=0, ymax=1, **kwargs):
862858
"""
863859
Add a vertical span (rectangle) across the axes.
@@ -924,7 +920,6 @@ def axvspan(self, xmin, xmax, ymin=0, ymax=1, **kwargs):
924920
return p
925921

926922
@unpack_labeled_data(replace_names=['y', 'xmin', 'xmax'], label_namer="y")
927-
@docstring.dedent
928923
def hlines(self, y, xmin, xmax, colors='k', linestyles='solid',
929924
label='', **kwargs):
930925
"""
@@ -1004,7 +999,6 @@ def hlines(self, y, xmin, xmax, colors='k', linestyles='solid',
1004999

10051000
@unpack_labeled_data(replace_names=["x", "ymin", "ymax", "colors"],
10061001
label_namer="x")
1007-
@docstring.dedent_interpd
10081002
def vlines(self, x, ymin, ymax, colors='k', linestyles='solid',
10091003
label='', **kwargs):
10101004
"""
@@ -1670,7 +1664,6 @@ def semilogy(self, *args, **kwargs):
16701664
return l
16711665

16721666
@unpack_labeled_data(replace_names=["x"], label_namer="x")
1673-
@docstring.dedent_interpd
16741667
def acorr(self, x, **kwargs):
16751668
"""
16761669
Plot the autocorrelation of `x`.
@@ -1732,7 +1725,6 @@ def acorr(self, x, **kwargs):
17321725
return self.xcorr(x, x, **kwargs)
17331726

17341727
@unpack_labeled_data(replace_names=["x", "y"], label_namer="y")
1735-
@docstring.dedent_interpd
17361728
def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
17371729
usevlines=True, maxlags=10, **kwargs):
17381730
"""
@@ -3844,7 +3836,6 @@ def dopatch(xs, ys, **kwargs):
38443836
"edgecolors", "c", 'facecolor',
38453837
'facecolors', 'color'],
38463838
label_namer="y")
3847-
@docstring.dedent_interpd
38483839
def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
38493840
vmin=None, vmax=None, alpha=None, linewidths=None,
38503841
verts=None, edgecolors=None,
@@ -4678,7 +4669,6 @@ def barbs(self, *args, **kw):
46784669

46794670
@unpack_labeled_data(replace_names=["x", "y"], label_namer=None,
46804671
positional_parameter_names=["x", "y", "c"])
4681-
@docstring.dedent_interpd
46824672
def fill(self, *args, **kwargs):
46834673
"""
46844674
Plot filled polygons.
@@ -5029,7 +5019,6 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
50295019

50305020
#### plotting z(x,y): imshow, pcolor and relatives, contour
50315021
@unpack_labeled_data(label_namer=None)
5032-
@docstring.dedent_interpd
50335022
def imshow(self, X, cmap=None, norm=None, aspect=None,
50345023
interpolation=None, alpha=None, vmin=None, vmax=None,
50355024
origin=None, extent=None, shape=None, filternorm=1,
@@ -5907,7 +5896,6 @@ def table(self, **kwargs):
59075896
#### Data analysis
59085897

59095898
@unpack_labeled_data(replace_names=["x", 'weights'], label_namer="x")
5910-
@docstring.dedent_interpd
59115899
def hist(self, x, bins=None, range=None, normed=False, weights=None,
59125900
cumulative=False, bottom=None, histtype='bar', align='mid',
59135901
orientation='vertical', rwidth=None, log=False,
@@ -6470,7 +6458,6 @@ def _normalize_input(inp, ename='input'):
64706458
return n, bins, cbook.silent_list('Lists of Patches', patches)
64716459

64726460
@unpack_labeled_data(replace_names=["x", "y", "weights"], label_namer=None)
6473-
@docstring.dedent_interpd
64746461
def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None,
64756462
cmin=None, cmax=None, **kwargs):
64766463
"""

0 commit comments

Comments
 (0)