| 5701 | |
| 5702 | @check_figures_equal() |
| 5703 | def test_axline_transaxes(fig_test, fig_ref): |
| 5704 | ax = fig_test.subplots() |
| 5705 | ax.set(xlim=(-1, 1), ylim=(-1, 1)) |
| 5706 | ax.axline((0, 0), slope=1, transform=ax.transAxes) |
| 5707 | ax.axline((1, 0.5), slope=1, color='C1', transform=ax.transAxes) |
| 5708 | ax.axline((0.5, 0.5), slope=0, color='C2', transform=ax.transAxes) |
| 5709 | ax.axline((0.5, 0), (0.5, 1), color='C3', transform=ax.transAxes) |
| 5710 | |
| 5711 | ax = fig_ref.subplots() |
| 5712 | ax.set(xlim=(-1, 1), ylim=(-1, 1)) |
| 5713 | ax.plot([-1, 1], [-1, 1]) |
| 5714 | ax.plot([0, 1], [-1, 0], color='C1') |
| 5715 | ax.plot([-1, 1], [0, 0], color='C2') |
| 5716 | ax.plot([0, 0], [-1, 1], color='C3') |
| 5717 | |
| 5718 | |
| 5719 | @check_figures_equal() |