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