@@ -6542,6 +6542,8 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
6542
6542
6543
6543
If len(*x*) < *NFFT*, it will be zero padded to *NFFT*.
6544
6544
6545
+ Parameters
6546
+ ----------
6545
6547
*x*: 1-D array or sequence
6546
6548
Array or sequence containing the data
6547
6549
@@ -6563,6 +6565,8 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
6563
6565
Whether to include the line object plotted in the returned values.
6564
6566
Default is False.
6565
6567
6568
+ Returns
6569
+ -------
6566
6570
If *return_line* is False, returns the tuple (*Pxx*, *freqs*).
6567
6571
If *return_line* is True, returns the tuple (*Pxx*, *freqs*. *line*):
6568
6572
@@ -6577,24 +6581,27 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
6577
6581
The line created by this function.
6578
6582
Only returend if *return_line* is True.
6579
6583
6584
+ Notes
6585
+ -----
6580
6586
For plotting, the power is plotted as
6581
6587
:math:`10\log_{10}(P_{xx})` for decibels, though *Pxx* itself
6582
6588
is returned.
6583
6589
6584
- References:
6590
+ References
6591
+ ----------
6585
6592
Bendat & Piersol -- Random Data: Analysis and Measurement
6586
6593
Procedures, John Wiley & Sons (1986)
6587
6594
6588
6595
kwargs control the :class:`~matplotlib.lines.Line2D` properties:
6589
6596
6590
6597
%(Line2D)s
6591
6598
6592
- **Example:**
6593
-
6599
+ Examples
6600
+ --------
6594
6601
.. plot:: mpl_examples/pylab_examples/psd_demo.py
6595
6602
6596
- .. seealso::
6597
-
6603
+ See Also
6604
+ --------
6598
6605
:func:`specgram`
6599
6606
:func:`specgram` differs in the default overlap; in not
6600
6607
returning the mean of the segment periodograms; in returning
@@ -6669,6 +6676,8 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
6669
6676
If len(*x*) < *NFFT* or len(*y*) < *NFFT*, they will be zero
6670
6677
padded to *NFFT*.
6671
6678
6679
+ Parameters
6680
+ ----------
6672
6681
*x*, *y*: 1-D arrays or sequences
6673
6682
Arrays or sequences containing the data
6674
6683
@@ -6690,6 +6699,8 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
6690
6699
Whether to include the line object plotted in the returned values.
6691
6700
Default is False.
6692
6701
6702
+ Returns
6703
+ -------
6693
6704
If *return_line* is False, returns the tuple (*Pxy*, *freqs*).
6694
6705
If *return_line* is True, returns the tuple (*Pxy*, *freqs*. *line*):
6695
6706
@@ -6704,24 +6715,27 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
6704
6715
The line created by this function.
6705
6716
Only returend if *return_line* is True.
6706
6717
6718
+ Notes
6719
+ -----
6707
6720
For plotting, the power is plotted as
6708
6721
:math:`10\log_{10}(P_{xy})` for decibels, though `P_{xy}` itself
6709
6722
is returned.
6710
6723
6711
- References:
6724
+ References
6725
+ ----------
6712
6726
Bendat & Piersol -- Random Data: Analysis and Measurement
6713
6727
Procedures, John Wiley & Sons (1986)
6714
6728
6715
6729
kwargs control the Line2D properties:
6716
6730
6717
6731
%(Line2D)s
6718
6732
6719
- **Example:**
6720
-
6733
+ Examples
6734
+ --------
6721
6735
.. plot:: mpl_examples/pylab_examples/csd_demo.py
6722
6736
6723
- .. seealso::
6724
-
6737
+ See Also
6738
+ --------
6725
6739
:func:`psd`
6726
6740
:func:`psd` is the equivalent to setting y=x.
6727
6741
"""
@@ -6772,6 +6786,8 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
6772
6786
length of *pad_to* and the windowing function *window* is applied to
6773
6787
the signal.
6774
6788
6789
+ Parameters
6790
+ ----------
6775
6791
*x*: 1-D array or sequence
6776
6792
Array or sequence containing the data
6777
6793
@@ -6791,6 +6807,8 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
6791
6807
when a signal is acquired and then filtered and downsampled to
6792
6808
baseband.
6793
6809
6810
+ Returns
6811
+ -------
6794
6812
Returns the tuple (*spectrum*, *freqs*, *line*):
6795
6813
6796
6814
*spectrum*: 1-D array
@@ -6806,12 +6824,12 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
6806
6824
6807
6825
%(Line2D)s
6808
6826
6809
- **Example:**
6810
-
6827
+ Examples
6828
+ --------
6811
6829
.. plot:: mpl_examples/pylab_examples/spectrum_demo.py
6812
6830
6813
- .. seealso::
6814
-
6831
+ See Also
6832
+ --------
6815
6833
:func:`psd`
6816
6834
:func:`psd` plots the power spectral density.`.
6817
6835
@@ -6871,6 +6889,8 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
6871
6889
Data is padded to a length of *pad_to* and the windowing function
6872
6890
*window* is applied to the signal.
6873
6891
6892
+ Parameters
6893
+ ----------
6874
6894
*x*: 1-D array or sequence
6875
6895
Array or sequence containing the data
6876
6896
@@ -6884,6 +6904,8 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
6884
6904
when a signal is acquired and then filtered and downsampled to
6885
6905
baseband.
6886
6906
6907
+ Returns
6908
+ -------
6887
6909
Returns the tuple (*spectrum*, *freqs*, *line*):
6888
6910
6889
6911
*spectrum*: 1-D array
@@ -6899,12 +6921,12 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
6899
6921
6900
6922
%(Line2D)s
6901
6923
6902
- **Example:**
6903
-
6924
+ Examples
6925
+ --------
6904
6926
.. plot:: mpl_examples/pylab_examples/spectrum_demo.py
6905
6927
6906
- .. seealso::
6907
-
6928
+ See Also
6929
+ --------
6908
6930
:func:`magnitude_spectrum`
6909
6931
:func:`angle_spectrum` plots the magnitudes of the
6910
6932
corresponding frequencies.
@@ -6949,6 +6971,8 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
6949
6971
Data is padded to a length of *pad_to* and the windowing function
6950
6972
*window* is applied to the signal.
6951
6973
6974
+ Parameters
6975
+ ----------
6952
6976
*x*: 1-D array or sequence
6953
6977
Array or sequence containing the data
6954
6978
@@ -6962,6 +6986,8 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
6962
6986
when a signal is acquired and then filtered and downsampled to
6963
6987
baseband.
6964
6988
6989
+ Returns
6990
+ -------
6965
6991
Returns the tuple (*spectrum*, *freqs*, *line*):
6966
6992
6967
6993
*spectrum*: 1-D array
@@ -6977,12 +7003,12 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
6977
7003
6978
7004
%(Line2D)s
6979
7005
6980
- **Example:**
6981
-
7006
+ Examples
7007
+ --------
6982
7008
.. plot:: mpl_examples/pylab_examples/spectrum_demo.py
6983
7009
6984
- .. seealso::
6985
-
7010
+ See Also
7011
+ --------
6986
7012
:func:`magnitude_spectrum`
6987
7013
:func:`magnitude_spectrum` plots the magnitudes of the
6988
7014
corresponding frequencies.
@@ -7026,6 +7052,8 @@ def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
7026
7052
7027
7053
C_{xy} = \\ frac{|P_{xy}|^2}{P_{xx}P_{yy}}
7028
7054
7055
+ Parameters
7056
+ ----------
7029
7057
%(Spectral)s
7030
7058
7031
7059
%(PSD)s
@@ -7040,12 +7068,15 @@ def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
7040
7068
when a signal is acquired and then filtered and downsampled to
7041
7069
baseband.
7042
7070
7071
+ Returns
7072
+ -------
7043
7073
The return value is a tuple (*Cxy*, *f*), where *f* are the
7044
7074
frequencies of the coherence vector.
7045
7075
7046
7076
kwargs are applied to the lines.
7047
7077
7048
- References:
7078
+ References
7079
+ ----------
7049
7080
7050
7081
* Bendat & Piersol -- Random Data: Analysis and Measurement
7051
7082
Procedures, John Wiley & Sons (1986)
@@ -7055,8 +7086,8 @@ def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
7055
7086
7056
7087
%(Line2D)s
7057
7088
7058
- **Example:**
7059
-
7089
+ Examples
7090
+ --------
7060
7091
.. plot:: mpl_examples/pylab_examples/cohere_demo.py
7061
7092
"""
7062
7093
if not self ._hold :
@@ -7098,6 +7129,8 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
7098
7129
specified with *noverlap*. The spectrogram is plotted as a colormap
7099
7130
(using imshow).
7100
7131
7132
+ Parameters
7133
+ ----------
7101
7134
*x*: 1-D array or sequence
7102
7135
Array or sequence containing the data
7103
7136
@@ -7143,11 +7176,13 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
7143
7176
Additional kwargs are passed on to imshow which makes the
7144
7177
specgram image
7145
7178
7146
- .. note::
7147
-
7179
+ Notes
7180
+ -----
7148
7181
*detrend* and *scale_by_freq* only apply when *mode* is set to
7149
7182
'psd'
7150
7183
7184
+ Returns
7185
+ -------
7151
7186
Returns the tuple (*spectrum*, *freqs*, *t*, *im*):
7152
7187
7153
7188
*spectrum*: 2-D array
@@ -7163,12 +7198,12 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
7163
7198
*im*: instance of class :class:`~matplotlib.image.AxesImage`
7164
7199
The image created by imshow containing the spectrogram
7165
7200
7166
- **Example:**
7167
-
7201
+ Examples
7202
+ --------
7168
7203
.. plot:: mpl_examples/pylab_examples/specgram_demo.py
7169
7204
7170
- .. seealso::
7171
-
7205
+ See Also
7206
+ --------
7172
7207
:func:`psd`
7173
7208
:func:`psd` differs in the default overlap; in returning
7174
7209
the mean of the segment periodograms; in not returning
0 commit comments