@@ -1633,7 +1633,7 @@ def acorr(self, x, **kwargs):
1633
1633
If ``True``, `Axes.vlines` is used to plot the vertical lines from
1634
1634
the origin to the acorr. Otherwise, `Axes.plot` is used.
1635
1635
1636
- maxlags : integer , optional, default: 10
1636
+ maxlags : int , optional, default: 10
1637
1637
Number of lags to show. If ``None``, will return all
1638
1638
``2 * len(x) - 1`` lags.
1639
1639
@@ -1654,10 +1654,10 @@ def acorr(self, x, **kwargs):
1654
1654
1655
1655
Other Parameters
1656
1656
----------------
1657
- linestyle : `~matplotlib.lines. Line2D` prop , optional, default: None
1657
+ linestyle : `. Line2D` property , optional, default: None
1658
1658
Only used if usevlines is ``False``.
1659
1659
1660
- marker : string , optional, default: 'o'
1660
+ marker : str , optional, default: 'o'
1661
1661
1662
1662
Notes
1663
1663
-----
@@ -1674,7 +1674,9 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
1674
1674
"""
1675
1675
Plot the cross correlation between *x* and *y*.
1676
1676
1677
- The correlation with lag k is defined as sum_n x[n+k] * conj(y[n]).
1677
+ The correlation with lag k is defined as
1678
+ :math:`\sum_n x[n+k] \cdot y^*[n]`, where :math:`y^*` is the complex
1679
+ conjugate of :math:`y`.
1678
1680
1679
1681
Parameters
1680
1682
----------
@@ -1716,7 +1718,7 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
1716
1718
1717
1719
Other Parameters
1718
1720
----------------
1719
- linestyle : `~matplotlib.lines .Line2D` property, optional
1721
+ linestyle : `.Line2D` property, optional
1720
1722
Only used if usevlines is ``False``.
1721
1723
1722
1724
marker : string, optional
@@ -6685,11 +6687,11 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
6685
6687
6686
6688
%(PSD)s
6687
6689
6688
- noverlap : integer
6690
+ noverlap : int
6689
6691
The number of points of overlap between segments.
6690
6692
The default value is 0 (no overlap).
6691
6693
6692
- Fc : integer
6694
+ Fc : int
6693
6695
The center frequency of *x* (defaults to 0), which offsets
6694
6696
the x extents of the plot to reflect the frequency range used
6695
6697
when a signal is acquired and then filtered and downsampled to
@@ -6703,10 +6705,10 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
6703
6705
-------
6704
6706
Pxx : 1-D array
6705
6707
The values for the power spectrum `P_{xx}` before scaling
6706
- (real valued)
6708
+ (real valued).
6707
6709
6708
6710
freqs : 1-D array
6709
- The frequencies corresponding to the elements in *Pxx*
6711
+ The frequencies corresponding to the elements in *Pxx*.
6710
6712
6711
6713
line : a :class:`~matplotlib.lines.Line2D` instance
6712
6714
The line created by this function.
@@ -6807,17 +6809,17 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
6807
6809
Parameters
6808
6810
----------
6809
6811
x, y : 1-D arrays or sequences
6810
- Arrays or sequences containing the data
6812
+ Arrays or sequences containing the data.
6811
6813
6812
6814
%(Spectral)s
6813
6815
6814
6816
%(PSD)s
6815
6817
6816
- noverlap : integer
6818
+ noverlap : int
6817
6819
The number of points of overlap between segments.
6818
6820
The default value is 0 (no overlap).
6819
6821
6820
- Fc : integer
6822
+ Fc : int
6821
6823
The center frequency of *x* (defaults to 0), which offsets
6822
6824
the x extents of the plot to reflect the frequency range used
6823
6825
when a signal is acquired and then filtered and downsampled to
@@ -6831,10 +6833,10 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
6831
6833
-------
6832
6834
Pxy : 1-D array
6833
6835
The values for the cross spectrum `P_{xy}` before scaling
6834
- (complex valued)
6836
+ (complex valued).
6835
6837
6836
6838
freqs : 1-D array
6837
- The frequencies corresponding to the elements in *Pxy*
6839
+ The frequencies corresponding to the elements in *Pxy*.
6838
6840
6839
6841
line : a :class:`~matplotlib.lines.Line2D` instance
6840
6842
The line created by this function.
@@ -6913,18 +6915,18 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
6913
6915
Parameters
6914
6916
----------
6915
6917
x : 1-D array or sequence
6916
- Array or sequence containing the data
6918
+ Array or sequence containing the data.
6917
6919
6918
6920
%(Spectral)s
6919
6921
6920
6922
%(Single_Spectrum)s
6921
6923
6922
- scale : [ 'default' | 'linear' | 'dB' ]
6924
+ scale : { 'default', 'linear', 'dB'}
6923
6925
The scaling of the values in the *spec*. 'linear' is no scaling.
6924
6926
'dB' returns the values in dB scale, i.e., the dB amplitude
6925
6927
(20 * log10). 'default' is 'linear'.
6926
6928
6927
- Fc : integer
6929
+ Fc : int
6928
6930
The center frequency of *x* (defaults to 0), which offsets
6929
6931
the x extents of the plot to reflect the frequency range used
6930
6932
when a signal is acquired and then filtered and downsampled to
@@ -6933,13 +6935,13 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
6933
6935
Returns
6934
6936
-------
6935
6937
spectrum : 1-D array
6936
- The values for the magnitude spectrum before scaling (real valued)
6938
+ The values for the magnitude spectrum before scaling (real valued).
6937
6939
6938
6940
freqs : 1-D array
6939
- The frequencies corresponding to the elements in *spectrum*
6941
+ The frequencies corresponding to the elements in *spectrum*.
6940
6942
6941
6943
line : a :class:`~matplotlib.lines.Line2D` instance
6942
- The line created by this function
6944
+ The line created by this function.
6943
6945
6944
6946
Other Parameters
6945
6947
----------------
@@ -7018,13 +7020,13 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
7018
7020
Parameters
7019
7021
----------
7020
7022
x : 1-D array or sequence
7021
- Array or sequence containing the data
7023
+ Array or sequence containing the data.
7022
7024
7023
7025
%(Spectral)s
7024
7026
7025
7027
%(Single_Spectrum)s
7026
7028
7027
- Fc : integer
7029
+ Fc : int
7028
7030
The center frequency of *x* (defaults to 0), which offsets
7029
7031
the x extents of the plot to reflect the frequency range used
7030
7032
when a signal is acquired and then filtered and downsampled to
@@ -7033,13 +7035,13 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
7033
7035
Returns
7034
7036
-------
7035
7037
spectrum : 1-D array
7036
- The values for the angle spectrum in radians (real valued)
7038
+ The values for the angle spectrum in radians (real valued).
7037
7039
7038
7040
freqs : 1-D array
7039
- The frequencies corresponding to the elements in *spectrum*
7041
+ The frequencies corresponding to the elements in *spectrum*.
7040
7042
7041
7043
line : a :class:`~matplotlib.lines.Line2D` instance
7042
- The line created by this function
7044
+ The line created by this function.
7043
7045
7044
7046
Other Parameters
7045
7047
----------------
@@ -7109,7 +7111,7 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
7109
7111
7110
7112
%(Single_Spectrum)s
7111
7113
7112
- Fc : integer
7114
+ Fc : int
7113
7115
The center frequency of *x* (defaults to 0), which offsets
7114
7116
the x extents of the plot to reflect the frequency range used
7115
7117
when a signal is acquired and then filtered and downsampled to
@@ -7118,13 +7120,13 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
7118
7120
Returns
7119
7121
-------
7120
7122
spectrum : 1-D array
7121
- The values for the phase spectrum in radians (real valued)
7123
+ The values for the phase spectrum in radians (real valued).
7122
7124
7123
7125
freqs : 1-D array
7124
- The frequencies corresponding to the elements in *spectrum*
7126
+ The frequencies corresponding to the elements in *spectrum*.
7125
7127
7126
7128
line : a :class:`~matplotlib.lines.Line2D` instance
7127
- The line created by this function
7129
+ The line created by this function.
7128
7130
7129
7131
Other Parameters
7130
7132
----------------
@@ -7189,11 +7191,11 @@ def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
7189
7191
7190
7192
%(PSD)s
7191
7193
7192
- noverlap : integer
7194
+ noverlap : int
7193
7195
The number of points of overlap between blocks. The
7194
7196
default value is 0 (no overlap).
7195
7197
7196
- Fc : integer
7198
+ Fc : int
7197
7199
The center frequency of *x* (defaults to 0), which offsets
7198
7200
the x extents of the plot to reflect the frequency range used
7199
7201
when a signal is acquired and then filtered and downsampled to
@@ -7202,10 +7204,11 @@ def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
7202
7204
7203
7205
Returns
7204
7206
-------
7205
- The return value is a tuple (* Cxy*, *f*), where *f* are the
7206
- frequencies of the coherence vector.
7207
+ Cxy : 1-D array
7208
+ The coherence vector.
7207
7209
7208
- kwargs are applied to the lines.
7210
+ freqs : 1-D array
7211
+ The frequencies for the elements in *Cxy*.
7209
7212
7210
7213
Other Parameters
7211
7214
----------------
@@ -7268,26 +7271,26 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
7268
7271
7269
7272
%(PSD)s
7270
7273
7271
- mode : [ 'default' | 'psd' | 'magnitude' | 'angle' | 'phase' ]
7274
+ mode : { 'default', 'psd', 'magnitude', 'angle', 'phase'}
7272
7275
What sort of spectrum to use. Default is 'psd', which takes
7273
7276
the power spectral density. 'complex' returns the complex-valued
7274
7277
frequency spectrum. 'magnitude' returns the magnitude spectrum.
7275
7278
'angle' returns the phase spectrum without unwrapping. 'phase'
7276
7279
returns the phase spectrum with unwrapping.
7277
7280
7278
- noverlap : integer
7281
+ noverlap : int
7279
7282
The number of points of overlap between blocks. The
7280
7283
default value is 128.
7281
7284
7282
- scale : [ 'default' | 'linear' | 'dB' ]
7285
+ scale : { 'default', 'linear', 'dB'}
7283
7286
The scaling of the values in the *spec*. 'linear' is no scaling.
7284
7287
'dB' returns the values in dB scale. When *mode* is 'psd',
7285
7288
this is dB power (10 * log10). Otherwise this is dB amplitude
7286
7289
(20 * log10). 'default' is 'dB' if *mode* is 'psd' or
7287
7290
'magnitude' and 'linear' otherwise. This must be 'linear'
7288
7291
if *mode* is 'angle' or 'phase'.
7289
7292
7290
- Fc : integer
7293
+ Fc : int
7291
7294
The center frequency of *x* (defaults to 0), which offsets
7292
7295
the x extents of the plot to reflect the frequency range used
7293
7296
when a signal is acquired and then filtered and downsampled to
@@ -7297,15 +7300,15 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
7297
7300
A :class:`matplotlib.colors.Colormap` instance; if *None*, use
7298
7301
default determined by rc
7299
7302
7300
- xextent : [ None | (xmin, xmax)]
7303
+ xextent : * None* or (xmin, xmax)
7301
7304
The image extent along the x-axis. The default sets *xmin* to the
7302
7305
left border of the first bin (*spectrum* column) and *xmax* to the
7303
7306
right border of the last bin. Note that for *noverlap>0* the width
7304
7307
of the bins is smaller than those of the segments.
7305
7308
7306
7309
**kwargs :
7307
7310
Additional kwargs are passed on to imshow which makes the
7308
- specgram image
7311
+ specgram image.
7309
7312
7310
7313
Returns
7311
7314
-------
0 commit comments