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

Function test_matshow

lib/matplotlib/tests/test_axes.py:232–239  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

230
231@check_figures_equal()
232def test_matshow(fig_test, fig_ref):
233 mpl.style.use("mpl20")
234 a = np.random.rand(32, 32)
235 fig_test.add_subplot().matshow(a)
236 ax_ref = fig_ref.add_subplot()
237 ax_ref.imshow(a)
238 ax_ref.xaxis.tick_top()
239 ax_ref.xaxis.set_ticks_position('both')
240
241
242@image_comparison([f'formatter_ticker_{i:03d}.png' for i in range(1, 6)], style='mpl20',

Callers

nothing calls this directly

Calls 5

matshowMethod · 0.80
add_subplotMethod · 0.80
imshowMethod · 0.80
tick_topMethod · 0.80
set_ticks_positionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…