Skip to content

Commit e46e1c0

Browse files
committed
Merge pull request #7470 from dstansby/correlation-docstrings
DOC: Clarify cross correlation documentation #1835
1 parent 97ad03b commit e46e1c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,8 +1672,7 @@ def acorr(self, x, **kwargs):
16721672
normalization.
16731673
16741674
normed : boolean, optional, default: True
1675-
if True, normalize the data by the autocorrelation at the 0-th
1676-
lag.
1675+
if True, input vectors are normalised to unit length.
16771676
16781677
usevlines : boolean, optional, default: True
16791678
if True, Axes.vlines is used to plot the vertical lines from the
@@ -1722,6 +1721,8 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
17221721
"""
17231722
Plot the cross correlation between *x* and *y*.
17241723
1724+
The correlation with lag k is defined as sum_n x[n+k] * conj(y[n]).
1725+
17251726
Parameters
17261727
----------
17271728
@@ -1736,8 +1737,7 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
17361737
normalization.
17371738
17381739
normed : boolean, optional, default: True
1739-
if True, normalize the data by the autocorrelation at the 0-th
1740-
lag.
1740+
if True, input vectors are normalised to unit length.
17411741
17421742
usevlines : boolean, optional, default: True
17431743
if True, Axes.vlines is used to plot the vertical lines from the

0 commit comments

Comments
 (0)