Skip to content

Commit 016f644

Browse files
author
gitj
committed
Update documentation of specgram
Mention that plotted data is in dB
1 parent 4f902fa commit 016f644

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/axes.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -8573,11 +8573,12 @@ def specgram(self, x, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
85738573
cmap=None, xextent=None, pad_to=None, sides='default',
85748574
scale_by_freq=None, **kwargs)
85758575
8576-
Compute a spectrogram of data in *x*. Data are split into
8576+
Compute and plot a spectrogram of data in *x*. Data are split into
85778577
*NFFT* length segments and the PSD of each section is
85788578
computed. The windowing function *window* is applied to each
85798579
segment, and the amount of overlap of each segment is
8580-
specified with *noverlap*.
8580+
specified with *noverlap*. The spectrogram is plotted in decibels
8581+
as a colormap (using imshow).
85818582
85828583
%(PSD)s
85838584

0 commit comments

Comments
 (0)