8000 Backport PR #19371: Fix specgram test on NumPy 1.20. · matplotlib/matplotlib@6381656 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6381656

Browse files
dstansbymeeseeksmachine
authored andcommitted
Backport PR #19371: Fix specgram test on NumPy 1.20.
1 parent a9ff466 commit 6381656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4152,7 +4152,7 @@ def test_specgram_angle():
41524152

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

0 commit comments

Comments
 (0)
0