(fig_test, fig_ref)
| 117 | |
| 118 | @check_figures_equal() |
| 119 | def test_label_loc_rc(fig_test, fig_ref): |
| 120 | with matplotlib.rc_context({"xaxis.labellocation": "right", |
| 121 | "yaxis.labellocation": "top"}): |
| 122 | ax = fig_test.subplots() |
| 123 | sc = ax.scatter([1, 2], [1, 2], c=[1, 2], label='scatter') |
| 124 | ax.legend() |
| 125 | ax.set_ylabel('Y Label') |
| 126 | ax.set_xlabel('X Label') |
| 127 | cbar = fig_test.colorbar(sc, orientation='horizontal') |
| 128 | cbar.set_label("Z Label") |
| 129 | |
| 130 | ax = fig_ref.subplots() |
| 131 | sc = ax.scatter([1, 2], [1, 2], c=[1, 2], label='scatter') |
| 132 | ax.legend() |
| 133 | ax.set_ylabel('Y Label', y=1, ha='right') |
| 134 | ax.set_xlabel('X Label', x=1, ha='right') |
| 135 | cbar = fig_ref.colorbar(sc, orientation='horizontal') |
| 136 | cbar.set_label("Z Label", x=1, ha='right') |
| 137 | |
| 138 | |
| 139 | def test_label_shift(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…