8000 MAINT removing docstring dedent_interpd when possible by NelleV · Pull Request #7296 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

MAINT removing docstring dedent_interpd when possible #7296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions lib/matplotlib/axes/_axes.py
< CA88 /tr>
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ def get_title(self, loc="center"):
raise ValueError("'%s' is not a valid location" % loc)
return title.get_text()

@docstring.dedent_interpd
def set_title(self, label, fontdict=None, loc="center", **kwargs):
"""
Set a title for the axes.
Expand Down Expand Up @@ -200,7 +199,6 @@ def get_xlabel(self):
label = self.xaxis.get_label()
return label.get_text()

@docstring.dedent_interpd
def set_xlabel(self, xlabel, fontdict=None, labelpad=None, **kwargs):
"""
Set the label for the xaxis.
Expand Down Expand Up @@ -232,7 +230,6 @@ def get_ylabel(self):
label = self.yaxis.get_label()
return label.get_text()

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

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

@_preprocess_data(replace_names=['y', 'xmin', 'xmax'], label_namer="y")
@docstring.dedent
def hlines(self, y, xmin, xmax, colors='k', linestyles='solid',
label='', **kwargs):
"""
Expand Down Expand Up @@ -1004,7 +999,6 @@ def hlines(self, y, xmin, xmax, colors='k', linestyles='solid',

@_preprocess_data(replace_names=["x", "ymin", "ymax", "colors"],
label_namer="x")
@docstring.dedent_interpd
def vlines(self, x, ymin, ymax, colors='k', linestyles='solid',
label='', **kwargs):
"""
Expand Down Expand Up @@ -1670,7 +1664,6 @@ def semilogy(self, *args, **kwargs):
return l

@_preprocess_data(replace_names=["x"], label_namer="x")
@docstring.dedent_interpd
def acorr(self, x, **kwargs):
"""
Plot the autocorrelation of `x`.
Expand Down Expand Up @@ -1732,7 +1725,6 @@ def acorr(self, x, **kwargs):
return self.xcorr(x, x, **kwargs)

@_preprocess_data(replace_names=["x", "y"], label_namer="y")
@docstring.dedent_interpd
def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
usevlines=True, maxlags=10, **kwargs):
"""
Expand Down Expand Up @@ -3840,7 +3832,6 @@ def dopatch(xs, ys, **kwargs):
"edgecolors", "c", 'facecolor',
'facecolors', 'color'],
label_namer="y")
@docstring.dedent_interpd
def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
vmin=None, vmax=None, alpha=None, linewidths=None,
verts=None, edgecolors=None,
Expand Down Expand Up @@ -4673,8 +4664,7 @@ def barbs(self, *args, **kw):
return b

@_preprocess_data(replace_names=["x", "y"], label_namer=None,
positional_parameter_names=["x", "y", "c"])
@docstring.dedent_interpd
positional_parameter_names=["x", "y", "c"])
def fill(self, *args, **kwargs):
"""Plot filled polygons.

Expand Down Expand Up @@ -5024,7 +5014,6 @@ def fill_betweenx(self, y, x1, x2=0, where=None,

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

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

@_preprocess_data(replace_names=["x", "y", "weights"], label_namer=None)
@docstring.dedent_interpd
def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None,
cmin=None, cmax=None, **kwargs):
"""
Expand Down
0