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

Function test_get_set_draggable

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

Source from the content-addressed store, hash-verified

1274
1275@pytest.mark.filterwarnings("ignore:No artists with labels found to put in legend")
1276def test_get_set_draggable():
1277 legend = plt.legend()
1278 assert not legend.get_draggable()
1279 legend.set_draggable(True)
1280 assert legend.get_draggable()
1281 legend.set_draggable(False)
1282 assert not legend.get_draggable()
1283
1284
1285@pytest.mark.parametrize('draggable', (True, False))

Callers

nothing calls this directly

Calls 3

get_draggableMethod · 0.80
set_draggableMethod · 0.80
legendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…