Skip to content

Commit 6e511f1

Browse files
committed
Add matshow image test
1 parent 466882f commit 6e511f1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
14.6 KB
Loading

lib/matplotlib/tests/test_axes.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ def test_spy():
6565
ax.spy(a)
6666

6767

68+
@image_comparison(baseline_images=['matshow'],
69+
extensions=['png'], style='mpl20')
70+
def test_matshow():
71+
np.random.seed(19680801)
72+
a = np.random.rand(32, 32)
73+
74+
fig, ax = plt.subplots()
75+
ax.matshow(a)
76+
77+
6878
@image_comparison(baseline_images=['formatter_ticker_001',
6979
'formatter_ticker_002',
7080
'formatter_ticker_003',

0 commit comments

Comments
 (0)