Skip to content

Commit

Permalink
Fix bug in specgram. (Thanks Glen W. Mabey!)
Browse files Browse the repository at this point in the history
svn path=/trunk/matplotlib/; revision=4268
  • Loading branch information
mdboom committed Nov 14, 2007
1 parent 7c0c30a commit e78aecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/mlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def specgram(x, NFFT=256, Fs=2, detrend=detrend_none,
# zero pad x up to NFFT if it is shorter than NFFT
if len(x)<NFFT:
n = len(x)
x = resize(x, (NFFT,))
x = npy.resize(x, (NFFT,))
x[n:] = 0


Expand Down

0 comments on commit e78aecb

Please sign in to comment.