From eb3060869c4e33de2b6e574395931287e1a9eff2 Mon Sep 17 00:00:00 2001 From: Colin Carroll Date: Sun, 2 Sep 2018 14:31:21 -0400 Subject: [PATCH] Update acorr and xcorr docs to match numpy --- lib/matplotlib/axes/_axes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 4bf6bae4cac6..3e3e92db43bd 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -1885,7 +1885,7 @@ def acorr(self, x, **kwargs): Notes ----- The cross correlation is performed with :func:`numpy.correlate` with - ``mode = 2``. + ``mode = "full"``. """ return self.xcorr(x, x, **kwargs) @@ -1946,7 +1946,7 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none, Notes ----- The cross correlation is performed with :func:`numpy.correlate` with - ``mode = 2``. + ``mode = "full"``. """ Nx = len(x) if Nx != len(y): @@ -1955,7 +1955,7 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none, x = detrend(np.asarray(x)) y = detrend(np.asarray(y)) - correls = np.correlate(x, y, mode=2) + correls = np.correlate(x, y, mode="full") if normed: correls /= np.sqrt(np.dot(x, x) * np.dot(y, y))