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

Function test_set_ticks_inverted

lib/matplotlib/tests/test_axes.py:8946–8952  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8944
8945
8946def test_set_ticks_inverted():
8947 fig, ax = plt.subplots()
8948 ax.invert_xaxis()
8949 ax.set_xticks([.3, .7])
8950 assert ax.get_xlim() == (1, 0)
8951 ax.set_xticks([-1])
8952 assert ax.get_xlim() == (1, -1)
8953
8954
8955def test_aspect_nonlinear_adjustable_box():

Callers

nothing calls this directly

Calls 4

set_xticksMethod · 0.80
subplotsMethod · 0.45
invert_xaxisMethod · 0.45
get_xlimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…