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

Function test_textarea_set_text

lib/matplotlib/tests/test_offsetbox.py:416–424  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

414
415@check_figures_equal()
416def test_textarea_set_text(fig_test, fig_ref):
417 ax_ref = fig_ref.add_subplot()
418 text0 = AnchoredText("Foo", "upper left")
419 ax_ref.add_artist(text0)
420
421 ax_test = fig_test.add_subplot()
422 text1 = AnchoredText("Bar", "upper left")
423 ax_test.add_artist(text1)
424 text1.txt.set_text("Foo")
425
426
427@image_comparison(['paddedbox.png'], remove_text=True, style='mpl20')

Callers

nothing calls this directly

Calls 4

AnchoredTextClass · 0.90
add_subplotMethod · 0.80
add_artistMethod · 0.45
set_textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…