(fig_test, fig_ref)
| 79 | |
| 80 | @check_figures_equal() |
| 81 | def test_label_loc_vertical(fig_test, fig_ref): |
| 82 | ax = fig_test.subplots() |
| 83 | sc = ax.scatter([1, 2], [1, 2], c=[1, 2], label='scatter') |
| 84 | ax.legend() |
| 85 | ax.set_ylabel('Y Label', loc='top') |
| 86 | ax.set_xlabel('X Label', loc='right') |
| 87 | cbar = fig_test.colorbar(sc) |
| 88 | cbar.set_label("Z Label", loc='top') |
| 89 | |
| 90 | ax = fig_ref.subplots() |
| 91 | sc = ax.scatter([1, 2], [1, 2], c=[1, 2], label='scatter') |
| 92 | ax.legend() |
| 93 | ax.set_ylabel('Y Label', y=1, ha='right') |
| 94 | ax.set_xlabel('X Label', x=1, ha='right') |
| 95 | cbar = fig_ref.colorbar(sc) |
| 96 | cbar.set_label("Z Label", y=1, ha='right') |
| 97 | |
| 98 | |
| 99 | @check_figures_equal() |
nothing calls this directly
no test coverage detected
searching dependent graphs…