From 638165699d98a6c74f27c94df62a8a799ba5d859 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Wed, 27 Jan 2021 14:37:35 +0000 Subject: [PATCH] Backport PR #19371: Fix specgram test on NumPy 1.20. --- lib/matplotlib/tests/test_axes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py index 57beec025aa8..e0b340da1ee8 100644 --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy