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

Function test_relim

lib/matplotlib/tests/test_image.py:1185–1190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1183
1184
1185def test_relim():
1186 fig, ax = plt.subplots()
1187 ax.imshow([[0]], extent=(0, 1, 0, 1))
1188 ax.relim()
1189 ax.autoscale()
1190 assert ax.get_xlim() == ax.get_ylim() == (0, 1)
1191
1192
1193def test_unclipped():

Callers

nothing calls this directly

Calls 6

imshowMethod · 0.80
relimMethod · 0.80
subplotsMethod · 0.45
autoscaleMethod · 0.45
get_xlimMethod · 0.45
get_ylimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…