Skip to content

Commit

Permalink
Merge pull request #19371 from QuLogic/fix-np120
Browse files Browse the repository at this point in the history
Fix specgram test on NumPy 1.20.
  • Loading branch information
dstansby committed Jan 27, 2021
2 parents fe9c2c6 + 7b9cdec commit 7cfdbe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_axes.py
Expand Up @@ -4452,7 +4452,7 @@ def test_specgram_angle():

def test_specgram_fs_none():
"""Test axes.specgram when Fs is None, should not throw error."""
spec, freqs, t, im = plt.specgram(np.ones(300), Fs=None)
spec, freqs, t, im = plt.specgram(np.ones(300), Fs=None, scale='linear')
xmin, xmax, freq0, freq1 = im.get_extent()
assert xmin == 32 and xmax == 96

Expand Down

0 comments on commit 7cfdbe1

Please sign in to comment.