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

Function test_handlerline2d

lib/matplotlib/tests/test_legend.py:1438–1444  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1436
1437
1438def test_handlerline2d():
1439 # Test marker consistency for monolithic Line2D legend handler (#11357).
1440 fig, ax = plt.subplots()
1441 ax.scatter([0, 1], [0, 1], marker="v")
1442 handles = [mlines.Line2D([0], [0], marker="v")]
1443 leg = ax.legend(handles, ["Aardvark"], numpoints=1)
1444 assert handles[0].get_marker() == leg.legend_handles[0].get_marker()
1445
1446
1447def test_subfigure_legend():

Callers

nothing calls this directly

Calls 4

subplotsMethod · 0.45
scatterMethod · 0.45
legendMethod · 0.45
get_markerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…