Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 653052b commit bc4823fCopy full SHA for bc4823f
2 files changed
lib/matplotlib/tests/baseline_images/test_axes/spy.png
9.54 KB
lib/matplotlib/tests/test_axes.py
@@ -43,6 +43,18 @@ def test_get_labels():
43
assert ax.get_ylabel() == 'y label'
44
45
46
+@image_comparison(baseline_images=['spy'], extensions=['png'], style='mpl20')
47
+def test_spy():
48
+ np.random.seed(19680801)
49
+ a = np.ones(32 * 32)
50
+ a[:16 * 32] = 0
51
+ np.random.shuffle(a)
52
+ a = np.reshape(a, (32, 32))
53
+
54
+ fig, ax = plt.subplots()
55
+ ax.spy(a)
56
57
58
@image_comparison(baseline_images=['formatter_ticker_001',
59
'formatter_ticker_002',
60
'formatter_ticker_003',
0 commit comments