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

Function test_handlerline3d

lib/mpl_toolkits/mplot3d/tests/test_legend3d.py:61–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60
61def test_handlerline3d():
62 # Test marker consistency for monolithic Line3D legend handler.
63 fig, ax = plt.subplots(subplot_kw=dict(projection='3d'))
64 ax.scatter([0, 1], [0, 1], marker="v")
65 handles = [art3d.Line3D([0], [0], [0], marker="v")]
66 leg = ax.legend(handles, ["Aardvark"], numpoints=1)
67 assert handles[0].get_marker() == leg.legend_handles[0].get_marker()
68
69
70def test_contour_legend_elements():

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…