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

Skip to content

Commit e015a0c

Browse files
committed
DOC nitpicks on the acorr methods
1 parent 21aa6e4 commit e015a0c

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ def set_title(self, label, fontdict=None, loc="center", **kwargs):
129129
default = {
130130
'fontsize': rcParams['axes.titlesize'],
131131
'verticalalignment': 'baseline',
132-
'horizontalalignment': loc.lower()
133-
}
132+
'horizontalalignment': loc.lower()}
134133
title.set_text(label)
135134
title.update(default)
136135
if fontdict is not None:
@@ -455,7 +454,7 @@ def text(self, x, y, s, fontdict=None,
455454
"""
456455
Add text to the axes.
457456
458-
Add text in string *s* to axis at location *x*, *y*, data
457+
Add text in string `s` to axis at location `x`, `y`, data
459458
coordinates.
460459
461460
Parameters
@@ -496,7 +495,7 @@ def text(self, x, y, s, fontdict=None,
496495
... transform=ax.transAxes)
497496
498497
You can put a rectangular box around the text instance (e.g., to
499-
set a background color) by using the keyword *bbox*. *bbox* is
498+
set a background color) by using the keyword `bbox`. `bbox` is
500499
a dictionary of `~matplotlib.patches.Rectangle`
501500
properties. For example::
502501
@@ -506,8 +505,7 @@ def text(self, x, y, s, fontdict=None,
506505
'verticalalignment': 'baseline',
507506
'horizontalalignment': 'left',
508507
'transform': self.transData,
509-
'clip_on': False
510-
}
508+
'clip_on': False}
511509

512510
# At some point if we feel confident that TextWithDash
513511
# is robust as a drop-in replacement for Text and that
@@ -803,15 +801,13 @@ def axvspan(self, xmin, xmax, ymin=0, ymax=1, **kwargs):
803801

804802
@docstring.dedent
805803
def hlines(self, y, xmin, xmax, colors='k', linestyles='solid',
806-
label='', **kwargs):
804+
label='', **kwargs):
807805
"""
808-
Plot horizontal lines.
809-
810806
Plot horizontal lines at each `y` from `xmin` to `xmax`.
811807
812808
Parameters
813809
----------
814-
y : scalar or 1D array_like
810+
y : scalar or sequence of scalar
815811
y-indexes where to plot the lines.
816812
817813
xmin, xmax : scalar or 1D array_like
@@ -1549,10 +1545,10 @@ def acorr(self, x, **kwargs):
15491545
lag.
15501546
15511547
usevlines : boolean, optional, default: True
1552-
if True, Axes.vlines is used to plot the vertical lines from the origin
1553-
to the acorr. Otherwise, Axes.plot is used.
1548+
if True, Axes.vlines is used to plot the vertical lines from the
1549+
origin to the acorr. Otherwise, Axes.plot is used.
15541550
1555-
maxlags : integer, optional, default: 10
1551+
maxlags : integer, optional, default: 10
15561552
number of lags to show. If None, will return all 2 * len(x) - 1
15571553
lags.
15581554
@@ -1568,7 +1564,7 @@ def acorr(self, x, **kwargs):
15681564
15691565
Other parameters
15701566
-----------------
1571-
linestyle : `~matplotlib.lines.Line2D` properties, optional, default: None
1567+
linestyle : `~matplotlib.lines.Line2D` prop, optional, default: None
15721568
Only used if usevlines is False.
15731569
15741570
marker : string, optional, default: 'o'
@@ -1599,7 +1595,7 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
15991595
----------
16001596
16011597
x : sequence of scalars of length n
1602-
1598+
16031599
y : sequence of scalars of length n
16041600
16051601
hold : boolean, optional, default: True
@@ -1613,10 +1609,10 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
16131609
lag.
16141610
16151611
usevlines : boolean, optional, default: True
1616-
if True, Axes.vlines is used to plot the vertical lines from the origin
1617-
to the acorr. Otherwise, Axes.plot is used.
1612+
if True, Axes.vlines is used to plot the vertical lines from the
1613+
origin to the acorr. Otherwise, Axes.plot is used.
16181614
1619-
maxlags : integer, optional, default: 10
1615+
maxlags : integer, optional, default: 10
16201616
number of lags to show. If None, will return all 2 * len(x) - 1
16211617
lags.
16221618
@@ -1632,7 +1628,7 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
16321628
16331629
Other parameters
16341630
-----------------
1635-
linestyle : `~matplotlib.lines.Line2D` properties, optional, default: None
1631+
linestyle : `~matplotlib.lines.Line2D` prop, optional, default: None
16361632
Only used if usevlines is False.
16371633
16381634
marker : string, optional, default: 'o'

0 commit comments

Comments
 (0)