| 1601 | |
| 1602 | |
| 1603 | def test_inverted_cla(): |
| 1604 | # GitHub PR #5450. Setting autoscale should reset |
| 1605 | # axes to be non-inverted. |
| 1606 | fig, ax = plt.subplots(subplot_kw={"projection": "3d"}) |
| 1607 | # 1. test that a new axis is not inverted per default |
| 1608 | assert not ax.xaxis_inverted() |
| 1609 | assert not ax.yaxis_inverted() |
| 1610 | assert not ax.zaxis_inverted() |
| 1611 | ax.set_xlim(1, 0) |
| 1612 | ax.set_ylim(1, 0) |
| 1613 | ax.set_zlim(1, 0) |
| 1614 | assert ax.xaxis_inverted() |
| 1615 | assert ax.yaxis_inverted() |
| 1616 | assert ax.zaxis_inverted() |
| 1617 | ax.cla() |
| 1618 | assert not ax.xaxis_inverted() |
| 1619 | assert not ax.yaxis_inverted() |
| 1620 | assert not ax.zaxis_inverted() |
| 1621 | |
| 1622 | |
| 1623 | def test_ax3d_tickcolour(): |