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.
2 parents af2bc5e + f5afbdf commit 8e2fe9bCopy full SHA for 8e2fe9b
lib/matplotlib/tests/baseline_images/test_axes/matshow.png
-14.6 KB
lib/matplotlib/tests/test_axes.py
@@ -147,13 +147,15 @@ def test_spy_invalid_kwargs():
147
ax.spy(np.eye(3, 3), **unsupported_kw)
148
149
150
-@image_comparison(['matshow.png'], style='mpl20')
151
-def test_matshow():
152
- np.random.seed(19680801)
+@check_figures_equal(extensions=["png"])
+def test_matshow(fig_test, fig_ref):
+ mpl.style.use("mpl20")
153
a = np.random.rand(32, 32)
154
-
155
- fig, ax = plt.subplots()
156
- ax.matshow(a)
+ fig_test.add_subplot().matshow(a)
+ ax_ref = fig_ref.add_subplot()
+ ax_ref.imshow(a)
157
+ ax_ref.xaxis.tick_top()
158
+ ax_ref.xaxis.set_ticks_position('both')
159
160
161
@image_comparison(['formatter_ticker_001',
0 commit comments