MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_inverted_cla

Function test_inverted_cla

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py:1603–1620  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1601
1602
1603def 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
1623def test_ax3d_tickcolour():

Callers

nothing calls this directly

Calls 5

set_zlimMethod · 0.80
subplotsMethod · 0.45
set_xlimMethod · 0.45
set_ylimMethod · 0.45
claMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…