Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1185
def
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
1193
def
test_unclipped():
Callers
nothing calls this directly
Calls
6
imshow
Method · 0.80
relim
Method · 0.80
subplots
Method · 0.45
autoscale
Method · 0.45
get_xlim
Method · 0.45
get_ylim
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…