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 33f9f79

Browse filesBrowse files
committed
MAINT removing docstring dedent when possible
1 parent e24322c commit 33f9f79
Copy full SHA for 33f9f79

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
"""
@@ -3840,7 +3832,6 @@ def dopatch(xs, ys, **kwargs):
38403832
"edgecolors", "c", 'facecolor',
38413833
'facecolors', 'color'],
38423834
label_namer="y")
3843-
@docstring.dedent_interpd
38443835
def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
38453836
vmin=None, vmax=None, alpha=None, linewidths=None,
38463837
verts=None, edgecolors=None,
@@ -4673,8 +4664,7 @@ def barbs(self, *args, **kw):
46734664
return b
46744665

46754666
@_preprocess_data(replace_names=["x", "y"], label_namer=None,
4676-
positional_parameter_names=["x", "y", "c"])
4677-
@docstring.dedent_interpd
4667+
positional_parameter_names=["x", "y", "c"])
46784668
def fill(self, *args, **kwargs):
46794669
"""Plot filled polygons.
46804670
@@ -5024,7 +5014,6 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
50245014

50255015
#### plotting z(x,y): imshow, pcolor and relatives, contour
50265016
@_preprocess_data(label_namer=None)
5027-
@docstring.dedent_interpd
50285017
def imshow(self, X, cmap=None, norm=None, aspect=None,
50295018
interpolation=None, alpha=None, vmin=None, vmax=None,
50305019
origin=None, extent=None, shape=None, filternorm=1,
@@ -5904,7 +5893,6 @@ def table(self, **kwargs):
59045893
#### Data analysis
59055894

59065895
@_preprocess_data(replace_names=["x", 'weights'], label_namer="x")
5907-
@docstring.dedent_interpd
59085896
def hist(self, x, bins=None, range=None, normed=False, weights=None,
59095897
cumulative=False, bottom=None, histtype='bar', align='mid',
59105898
orientation='vertical', rwidth=None, log=False,
@@ -6469,7 +6457,6 @@ def _normalize_input(inp, ename='input'):
64696457
return n, bins, cbook.silent_list('Lists of Patches', patches)
64706458

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

0 commit comments

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