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

Function test_arrowprops_copied

lib/matplotlib/tests/test_offsetbox.py:323–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

321
322
323def test_arrowprops_copied():
324 da = DrawingArea(20, 20, 0, 0, clip=True)
325 arrowprops = {"arrowstyle": "->", "relpos": (.3, .7)}
326 ab = AnnotationBbox(da, [.5, .5], xybox=(-0.2, 0.5), xycoords='data',
327 boxcoords="axes fraction", box_alignment=(0., .5),
328 arrowprops=arrowprops)
329 assert ab.arrowprops is not ab
330 assert arrowprops["relpos"] == (.3, .7)
331
332
333@pytest.mark.parametrize("align", ["baseline", "bottom", "top",

Callers

nothing calls this directly

Calls 2

DrawingAreaClass · 0.90
AnnotationBboxClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…