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

Skip to content

Commit e78aecb

Browse files
committed
Fix bug in specgram. (Thanks Glen W. Mabey!)
svn path=/trunk/matplotlib/; revision=4268
1 parent 7c0c30a commit e78aecb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/mlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def specgram(x, NFFT=256, Fs=2, detrend=detrend_none,
353353
# zero pad x up to NFFT if it is shorter than NFFT
354354
if len(x)<NFFT:
355355
n = len(x)
356-
x = resize(x, (NFFT,))
356+
x = npy.resize(x, (NFFT,))
357357
x[n:] = 0
358358

359359

0 commit comments

Comments
 (0)