Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 884a2a6

Browse files
Florencia NoriegaNelleV
Florencia Noriega
authored andcommitted
FIX various trailing spaces, clarity, tabulations.
1 parent bd2545e commit 884a2a6

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

lib/matplotlib/mlab.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,49 +1255,49 @@ def specgram(x, NFFT=None, Fs=None, detrend=None, window=None,
12551255
%(PSD)s
12561256
12571257
noverlap : int, optional
1258-
The number of points of overlap between blocks. The default
1258+
The number of points of overlap between blocks. The default
12591259
value is 128.
12601260
mode : str, optional
1261-
What sort of spectrum to use, default is 'psd'.
1262-
1263-
'psd'
1264-
Returns the power spectral density.
1265-
1266-
'complex'
1267-
Returns the complex-valued frequency spectrum.
1268-
1269-
'magnitude'
1270-
Returns the magnitude spectrum.
1271-
1272-
'angle'
1273-
Returns the phase spectrum without unwrapping.
1274-
1275-
'phase'
1276-
Returns the phase spectrum with unwrapping.
1261+
What sort of spectrum to use, default is 'psd'.
1262+
'psd'
1263+
Returns the power spectral density.
1264+
1265+
'complex'
1266+
Returns the complex-valued frequency spectrum.
1267+
1268+
'magnitude'
1269+
Returns the magnitude spectrum.
1270+
1271+
'angle'
1272+
Returns the phase spectrum without unwrapping.
1273+
1274+
'phase'
1275+
Returns the phase spectrum with unwrapping.
12771276
12781277
Returns
12791278
-------
1280-
spectrum: array_like
1279+
spectrum : array_like
12811280
2-D array, columns are the periodograms of successive segments.
12821281
1283-
freqs: array_like
1282+
freqs : array_like
12841283
1-D array, frequencies corresponding to the rows in *spectrum*.
12851284
12861285
t : array_like
1287-
1-D array, the times corresponding to midpoints of segments
1286+
1-D array, the times corresponding to midpoints of segments
12881287
(i.e the columns in *spectrum*).
12891288
12901289
See Also
12911290
--------
1292-
psd : differs in the default overlap; in returning the mean of the segment periodograms; and in not returning times.
1293-
complex_spectrum : A single spectrum, similar to having a single segment when mode is 'complex'.
1294-
magnitude_spectrum : A single spectrum, similar to having a single segment when mode is 'magnitude'.
1295-
angle_spectrum : A single spectrum, similar to having a single segment when mode is 'angle'.
1296-
phase_spectrum : A single spectrum, similar to having a single segment when mode is 'phase'.
1291+
psd : differs in the overlap and in the return values.
1292+
complex_spectrum : similar, but with complex valued frequencies.
1293+
magnitude_spectrum : similar single segment when mode is 'magnitude'.
1294+
angle_spectrum : similar to single segment when mode is 'angle'.
1295+
phase_spectrum : similar to single segment when mode is 'phase'.
12971296
12981297
Notes
12991298
-----
13001299
detrend and scale_by_freq only apply when *mode* is set to 'psd'.
1300+
13011301
"""
13021302
if noverlap is None:
13031303
noverlap = 128

0 commit comments

Comments
 (0)