(fig_ref, fig_test)
| 1195 | |
| 1196 | @check_figures_equal() |
| 1197 | def 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", [ |
nothing calls this directly
no test coverage detected
searching dependent graphs…