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

Function test_imshow_quantitynd

lib/matplotlib/tests/test_image.py:1366–1372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1364
1365
1366def test_imshow_quantitynd():
1367 # generate a dummy ndarray subclass
1368 arr = QuantityND(np.ones((2, 2)), "m")
1369 fig, ax = plt.subplots()
1370 ax.imshow(arr)
1371 # executing the draw should not raise an exception
1372 fig.canvas.draw()
1373
1374
1375@check_figures_equal()

Callers

nothing calls this directly

Calls 4

QuantityNDClass · 0.85
imshowMethod · 0.80
subplotsMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…