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