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

Function test_input_copy

lib/matplotlib/tests/test_lines.py:338–345  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

336
337@check_figures_equal()
338def test_input_copy(fig_test, fig_ref):
339
340 t = np.arange(0, 6, 2)
341 l, = fig_test.add_subplot().plot(t, t, ".-")
342 t[:] = range(3)
343 # Trigger cache invalidation
344 l.set_drawstyle("steps")
345 fig_ref.add_subplot().plot([0, 2, 4], [0, 2, 4], ".-", drawstyle="steps")
346
347
348@check_figures_equal()

Callers

nothing calls this directly

Calls 3

add_subplotMethod · 0.80
set_drawstyleMethod · 0.80
plotMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…