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

Function test_parentless_mappable

lib/matplotlib/tests/test_colorbar.py:333–336  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

331
332
333def test_parentless_mappable():
334 pc = mpl.collections.PatchCollection([], cmap=plt.get_cmap('viridis'), array=[])
335 with pytest.raises(ValueError, match='Unable to determine Axes to steal'):
336 plt.colorbar(pc)
337
338
339@image_comparison(['colorbar_closed_patch.png'], remove_text=True,

Callers

nothing calls this directly

Calls 2

get_cmapMethod · 0.45
colorbarMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…