Skip to content

Commit

Permalink
Merge pull request matplotlib#1489 from gitj/master
Browse files Browse the repository at this point in the history
Documentation update for specgram
  • Loading branch information
ivanov committed Nov 24, 2012
2 parents 0f0b79e + 930a9db commit a1f8b4e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/matplotlib/axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -8604,11 +8604,12 @@ def specgram(self, x, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
cmap=None, xextent=None, pad_to=None, sides='default',
scale_by_freq=None, **kwargs)
Compute a spectrogram of data in *x*. Data are split into
Compute and plot a spectrogram of data in *x*. Data are split into
*NFFT* length segments and the PSD of each section is
computed. The windowing function *window* is applied to each
segment, and the amount of overlap of each segment is
specified with *noverlap*.
specified with *noverlap*. The spectrogram is plotted in decibels
as a colormap (using imshow).
%(PSD)s
Expand Down Expand Up @@ -8647,6 +8648,9 @@ def specgram(self, x, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
spectrum is shown. If *x* is complex, both positive and
negative parts of the spectrum are shown. This can be
overridden using the *sides* keyword argument.
Also note that while the plot is in dB, the *Pxx* array returned is
linear in power.
**Example:**
Expand Down

0 comments on commit a1f8b4e

Please sign in to comment.