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

Function test_legend_draggable

lib/matplotlib/tests/test_legend.py:1286–1290  ·  view source on GitHub ↗
(draggable)

Source from the content-addressed store, hash-verified

1284
1285@pytest.mark.parametrize('draggable', (True, False))
1286def test_legend_draggable(draggable):
1287 fig, ax = plt.subplots()
1288 ax.plot(range(10), label='shabnams')
1289 leg = ax.legend(draggable=draggable)
1290 assert leg.get_draggable() is draggable
1291
1292
1293def test_alpha_handles():

Callers

nothing calls this directly

Calls 4

get_draggableMethod · 0.80
subplotsMethod · 0.45
plotMethod · 0.45
legendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…