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

Sign up
Appearance settings

Commit e15005a

Browse files
committed
Improve indentation of Line2D properties in docstrings.
1 parent 1549229 commit e15005a

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

‎lib/matplotlib/axes/_axes.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ def axhline(self, y=0, xmin=0, xmax=1, **kwargs):
811811
Valid kwargs are :class:`~matplotlib.lines.Line2D` properties,
812812
with the exception of 'transform':
813813
814-
%(_Line2D_docstr)s
814+
%(_Line2D_docstr)s
815815
816816
See also
817817
--------
@@ -879,7 +879,7 @@ def axvline(self, x=0, ymin=0, ymax=1, **kwargs):
879879
Valid kwargs are :class:`~matplotlib.lines.Line2D` properties,
880880
with the exception of 'transform':
881881
882-
%(_Line2D_docstr)s
882+
%(_Line2D_docstr)s
883883
884884
Examples
885885
--------
@@ -1544,7 +1544,7 @@ def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs):
15441544
15451545
Here is a list of available `.Line2D` properties:
15461546
1547-
%(_Line2D_docstr)s
1547+
%(_Line2D_docstr)s
15481548
15491549
Returns
15501550
-------
@@ -1694,7 +1694,7 @@ def plot_date(self, x, y, fmt='o', tz=None, xdate=True, ydate=False,
16941694
Keyword arguments control the :class:`~matplotlib.lines.Line2D`
16951695
properties:
16961696
1697-
%(_Line2D_docstr)s
1697+
%(_Line2D_docstr)s
16981698
16991699
See Also
17001700
--------
@@ -3176,7 +3176,7 @@ def errorbar(self, x, y, yerr=None, xerr=None,
31763176
31773177
Valid kwargs for the marker properties are `.Lines2D` properties:
31783178
3179-
%(_Line2D_docstr)s
3179+
%(_Line2D_docstr)s
31803180
"""
31813181
kwargs = cbook.normalize_kwargs(kwargs, mlines.Line2D)
31823182
# anything that comes in as 'None', drop so the default thing
@@ -7011,7 +7011,7 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
70117011
Keyword arguments control the :class:`~matplotlib.lines.Line2D`
70127012
properties:
70137013
7014-
%(_Line2D_docstr)s
7014+
%(_Line2D_docstr)s
70157015
70167016
See Also
70177017
--------
@@ -7130,7 +7130,7 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
71307130
Keyword arguments control the :class:`~matplotlib.lines.Line2D`
71317131
properties:
71327132
7133-
%(_Line2D_docstr)s
7133+
%(_Line2D_docstr)s
71347134
71357135
See Also
71367136
--------
@@ -7223,7 +7223,7 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
72237223
Keyword arguments control the :class:`~matplotlib.lines.Line2D`
72247224
properties:
72257225
7226-
%(_Line2D_docstr)s
7226+
%(_Line2D_docstr)s
72277227
72287228
See Also
72297229
--------
@@ -7311,7 +7311,7 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
73117311
Keyword arguments control the :class:`~matplotlib.lines.Line2D`
73127312
properties:
73137313
7314-
%(_Line2D_docstr)s
7314+
%(_Line2D_docstr)s
73157315
73167316
See Also
73177317
--------
@@ -7384,7 +7384,7 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
73847384
Keyword arguments control the :class:`~matplotlib.lines.Line2D`
73857385
properties:
73867386
7387-
%(_Line2D_docstr)s
7387+
%(_Line2D_docstr)s
73887388
73897389
See Also
73907390
--------
@@ -7459,7 +7459,7 @@ def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
74597459
Keyword arguments control the :class:`~matplotlib.lines.Line2D`
74607460
properties:
74617461
7462-
%(_Line2D_docstr)s
7462+
%(_Line2D_docstr)s
74637463
74647464
References
74657465
----------
@@ -7712,7 +7712,7 @@ def spy(self, Z, precision=0, marker=None, markersize=None,
77127712
For the marker style, you can pass any `.Line2D` property except
77137713
for *linestyle*:
77147714
7715-
%(_Line2D_docstr)s
7715+
%(_Line2D_docstr)s
77167716
"""
77177717
if marker is None and markersize is None and hasattr(Z, 'tocoo'):
77187718
marker = 's'

‎lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2784,9 +2784,9 @@ def grid(self, b=None, which='major', axis='both', **kwargs):
27842784
27852785
grid(color='r', linestyle='-', linewidth=2)
27862786
2787-
Valid *kwargs* are
2787+
Valid *kwargs* are:
27882788
2789-
%(_Line2D_docstr)s
2789+
%(_Line2D_docstr)s
27902790
27912791
Notes
27922792
-----

‎lib/matplotlib/lines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def __init__(self, xdata, ydata,
291291
Create a :class:`~matplotlib.lines.Line2D` instance with *x*
292292
and *y* data in sequences *xdata*, *ydata*.
293293
294-
The kwargs are :class:`~matplotlib.lines.Line2D` properties:
294+
The *kwargs* are :class:`~matplotlib.lines.Line2D` properties:
295295
296296
%(_Line2D_docstr)s
297297

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /