@@ -1906,19 +1906,25 @@ def acorr(self, x, **kwargs):
1906
1906
1907
1907
Parameters
1908
1908
----------
1909
-
1910
- x : sequence of scalar
1909
+ x : array-like
1911
1910
1912
1911
detrend : callable, optional, default: `mlab.detrend_none`
1913
- *x* is detrended by the *detrend* callable. Default is no
1914
- normalization.
1912
+ *x* is detrended by the *detrend* callable. This must be a
1913
+ function ``x = detrend(x)`` accepting and returning an
1914
+ `numpy.array`. Default is no normalization.
1915
1915
1916
1916
normed : bool, optional, default: True
1917
1917
If ``True``, input vectors are normalised to unit length.
1918
1918
1919
1919
usevlines : bool, optional, default: True
1920
- If ``True``, `Axes.vlines` is used to plot the vertical lines from
1921
- the origin to the acorr. Otherwise, `Axes.plot` is used.
1920
+ Determines the plot style.
1921
+
1922
+ If ``True``, vertical lines are plotted from 0 to the acorr value
1923
+ using `Axes.vlines`. Additionally, a horizontal line is plotted
1924
+ at y=0 using `Axes.axhline`.
1925
+
1926
+ If ``False``, markers are plotted at the acorr values using
1927
+ `Axes.plot`.
1922
1928
1923
1929
maxlags : int, optional, default: 10
1924
1930
Number of lags to show. If ``None``, will return all
@@ -1927,24 +1933,27 @@ def acorr(self, x, **kwargs):
1927
1933
Returns
1928
1934
-------
1929
1935
lags : array (length ``2*maxlags+1``)
1930
- lag vector.
1936
+ The lag vector.
1931
1937
c : array (length ``2*maxlags+1``)
1932
- auto correlation vector.
1938
+ The auto correlation vector.
1933
1939
line : `.LineCollection` or `.Line2D`
1934
- `.Artist` added to the axes of the correlation.
1940
+ `.Artist` added to the axes of the correlation:
1935
1941
1936
- `.LineCollection` if *usevlines* is True
1937
- `.Line2D` if *usevlines* is False
1942
+ - `.LineCollection` if *usevlines* is True.
1943
+ - `.Line2D` if *usevlines* is False.
1938
1944
b : `.Line2D` or None
1939
1945
Horizontal line at 0 if *usevlines* is True
1940
- None *usevlines* is False
1946
+ None *usevlines* is False.
1941
1947
1942
1948
Other Parameters
1943
1949
----------------
1944
- linestyle : `.Line2D` property, optional, default: None
1945
- Only used if usevlines is ``False``.
1950
+ linestyle : `.Line2D` property, optional
1951
+ The linestyle for plotting the data points.
1952
+ Only used if *usevlines* is ``False``.
1946
1953
1947
1954
marker : str, optional, default: 'o'
1955
+ The marker for plotting the data points.
1956
+ Only used if *usevlines* is ``False``.
1948
1957
1949
1958
Notes
1950
1959
-----
@@ -1965,47 +1974,56 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
1965
1974
1966
1975
Parameters
1967
1976
----------
1968
- x : sequence of scalars of length n
1977
+ x : array-like of length n
1969
1978
1970
- y : sequence of scalars of length n
1979
+ y : array-like of length n
1971
1980
1972
1981
detrend : callable, optional, default: `mlab.detrend_none`
1973
- *x* is detrended by the *detrend* callable. Default is no
1974
- normalization.
1982
+ *x* and *y* are detrended by the *detrend* callable. This must be a
1983
+ function ``x = detrend(x)`` accepting and returning an
1984
+ `numpy.array`. Default is no normalization.
1975
1985
1976
1986
normed : bool, optional, default: True
1977
1987
If ``True``, input vectors are normalised to unit length.
1978
1988
1979
1989
usevlines : bool, optional, default: True
1980
- If ``True``, `Axes.vlines` is used to plot the vertical lines from
1981
- the origin to the acorr. Otherwise, `Axes.plot` is used.
1990
+ Determines the plot style.
1982
1991
1983
- maxlags : int, optional
1992
+ If ``True``, vertical lines are plotted from 0 to the xcorr value
1993
+ using `Axes.vlines`. Additionally, a horizontal line is plotted
1994
+ at y=0 using `Axes.axhline`.
1995
+
1996
+ If ``False``, markers are plotted at the xcorr values using
1997
+ `Axes.plot`.
1998
+
1999
+ maxlags : int, optional, default: 10
1984
2000
Number of lags to show. If None, will return all ``2 * len(x) - 1``
1985
- lags. Default is 10.
2001
+ lags.
1986
2002
1987
2003
Returns
1988
2004
-------
1989
2005
lags : array (length ``2*maxlags+1``)
1990
- lag vector.
2006
+ The lag vector.
1991
2007
c : array (length ``2*maxlags+1``)
1992
- auto correlation vector.
2008
+ The auto correlation vector.
1993
2009
line : `.LineCollection` or `.Line2D`
1994
- `.Artist` added to the axes of the correlation
2010
+ `.Artist` added to the axes of the correlation:
1995
2011
1996
- `.LineCollection` if *usevlines* is True
1997
- `.Line2D` if *usevlines* is False
2012
+ - `.LineCollection` if *usevlines* is True.
2013
+ - `.Line2D` if *usevlines* is False.
1998
2014
b : `.Line2D` or None
1999
2015
Horizontal line at 0 if *usevlines* is True
2000
- None *usevlines* is False
2016
+ None *usevlines* is False.
2001
2017
2002
2018
Other Parameters
2003
2019
----------------
2004
2020
linestyle : `.Line2D` property, optional
2005
- Only used if usevlines is ``False``.
2021
+ The linestyle for plotting the data points.
2022
+ Only used if *usevlines* is ``False``.
2006
2023
2007
- marker : string, optional
2008
- Default is 'o'.
2024
+ marker : str, optional, default: 'o'
2025
+ The marker for plotting the data points.
2026
+ Only used if *usevlines* is ``False``.
2009
2027
2010
2028
Notes
2011
2029
-----
0 commit comments