Skip to content

Commit

Permalink
Backport PR matplotlib#19371: Fix specgram test on NumPy 1.20.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby authored and meeseeksmachine committed Jan 27, 2021
1 parent a9ff466 commit 6381656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_axes.py
Expand Up @@ -4152,7 +4152,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 6381656

Please sign in to comment.