Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 17eace7

Browse filesBrowse files
authored
Merge pull request #7296 from NelleV/main_remove_docstring_dedent_when_possible
MAINT removing docstring dedent_interpd when possible
2 parents e0fe1f9 + 33f9f79 commit 17eace7
Copy full SHA for 17eace7

File tree

Expand file treeCollapse file tree

1 file changed

+1
-14
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-14
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+1-14Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ def get_title(self, loc="center"):
137137
raise ValueError("'%s' is not a valid location" % loc)
138138
return title.get_text()
139139

140-
@docstring.dedent_interpd
141140
def set_title(self, label, fontdict=None, loc="center", **kwargs):
142141
"""
143142
Set a title for the axes.
@@ -200,7 +199,6 @@ def get_xlabel(self):
200199
label = self.xaxis.get_label()
201200
return label.get_text()
202201

203-
@docstring.dedent_interpd
204202
def set_xlabel(self, xlabel, fontdict=None, labelpad=None, **kwargs):
205203
"""
206204
Set the label for the xaxis.
@@ -232,7 +230,6 @@ def get_ylabel(self):
232230
label = self.yaxis.get_label()
233231
return label.get_text()
234232

235-
@docstring.dedent_interpd
236233
def set_ylabel(self, ylabel, fontdict=None, labelpad=None, **kwargs):
237234
"""
238235
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
@_preprocess_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
@_preprocess_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
@_preprocess_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
@_preprocess_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,
@@ -4677,8 +4668,7 @@ def barbs(self, *args, **kw):
46774668
return b
46784669

46794670
@_preprocess_data(replace_names=["x", "y"], label_namer=None,
4680-
positional_parameter_names=["x", "y", "c"])
4681-
@docstring.dedent_interpd
4671+
positional_parameter_names=["x", "y", "c"])
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
@_preprocess_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,
@@ -5909,7 +5898,6 @@ def table(self, **kwargs):
59095898
#### Data analysis
59105899

59115900
@_preprocess_data(replace_names=["x", 'weights'], label_namer="x")
5912-
@docstring.dedent_interpd
59135901
def hist(self, x, bins=None, range=None, normed=False, weights=None,
59145902
cumulative=False, bottom=None, histtype='bar', align='mid',
59155903
orientation='vertical', rwidth=None, log=False,
@@ -6474,7 +6462,6 @@ def _normalize_input(inp, ename='input'):
64746462
return n, bins, cbook.silent_list('Lists of Patches', patches)
64756463

64766464
@_preprocess_data(replace_names=["x", "y", "weights"], label_namer=None)
6477-
@docstring.dedent_interpd
64786465
def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None,
64796466
cmin=None, cmax=None, **kwargs):
64806467
"""

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.