Skip to content

Commit 7cfdbe1

Browse files
authored
Merge pull request #19371 from QuLogic/fix-np120
Fix specgram test on NumPy 1.20.
2 parents fe9c2c6 + 7b9cdec commit 7cfdbe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_axes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4452,7 +4452,7 @@ def test_specgram_angle():
44524452

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

0 commit comments

Comments
 (0)