MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_specgram_fs_none

Function test_specgram_fs_none

lib/matplotlib/tests/test_axes.py:6060–6064  ·  view source on GitHub ↗

Test axes.specgram when Fs is None, should not throw error.

()

Source from the content-addressed store, hash-verified

6058
6059
6060def test_specgram_fs_none():
6061 """Test axes.specgram when Fs is None, should not throw error."""
6062 spec, freqs, t, im = plt.specgram(np.ones(300), Fs=None, scale='linear')
6063 xmin, xmax, freq0, freq1 = im.get_extent()
6064 assert xmin == 32 and xmax == 96
6065
6066
6067@check_figures_equal()

Callers

nothing calls this directly

Calls 2

specgramMethod · 0.80
get_extentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…