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

Function test_pyplot_axes

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

Source from the content-addressed store, hash-verified

3371
3372
3373def test_pyplot_axes():
3374 # test focusing of Axes in other Figure
3375 fig1, ax1 = plt.subplots()
3376 fig2, ax2 = plt.subplots()
3377 plt.sca(ax1)
3378 assert ax1 is plt.gca()
3379 assert fig1 is plt.gcf()
3380 plt.close(fig1)
3381 plt.close(fig2)
3382
3383
3384def test_log_scales():

Callers

nothing calls this directly

Calls 4

scaMethod · 0.80
gcaMethod · 0.80
subplotsMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…