MCPcopy
hub / github.com/matplotlib/matplotlib / test_passing_location

Function test_passing_location

lib/matplotlib/tests/test_colorbar.py:1197–1205  ·  view source on GitHub ↗
(fig_ref, fig_test)

Source from the content-addressed store, hash-verified

1195
1196@check_figures_equal()
1197def test_passing_location(fig_ref, fig_test):
1198 ax_ref = fig_ref.add_subplot()
1199 im = ax_ref.imshow([[0, 1], [2, 3]])
1200 ax_ref.get_figure().colorbar(im, cax=ax_ref.inset_axes([0, 1.05, 1, 0.05]),
1201 orientation="horizontal", ticklocation="top")
1202 ax_test = fig_test.add_subplot()
1203 im = ax_test.imshow([[0, 1], [2, 3]])
1204 ax_test.get_figure().colorbar(im, cax=ax_test.inset_axes([0, 1.05, 1, 0.05]),
1205 location="top")
1206
1207
1208@pytest.mark.parametrize("kwargs,error,message", [

Callers

nothing calls this directly

Calls 5

add_subplotMethod · 0.80
imshowMethod · 0.80
inset_axesMethod · 0.80
colorbarMethod · 0.45
get_figureMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…