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