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

Skip to content

Commit 99fab6a

Browse files
committed
DOC: note lack of unit handling in docstring
1 parent 151199a commit 99fab6a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,8 @@ def acorr(self, x, **kwargs):
19781978
19791979
Parameters
19801980
----------
1981-
x : array-like
1981+
x : array-like. x is not run through Matplotlib's unit
1982+
conversion, so this should be a unit-less array.
19821983
19831984
detrend : callable, default: `.mlab.detrend_none` (no detrending)
19841985
A detrending function applied to *x*. It must have the
@@ -2055,7 +2056,9 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
20552056
20562057
Parameters
20572058
----------
2058-
x, y : array-like of length n
2059+
x, y : array-like of length n. Neither x nor y are run through
2060+
Matplotlib's unit conversion, so these should be unit-less
2061+
arrays.
20592062
20602063
detrend : callable, default: `.mlab.detrend_none` (no detrending)
20612064
A detrending function applied to *x* and *y*. It must have the

0 commit comments

Comments
 (0)