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

Function callback

galleries/examples/widgets/check_buttons.py:47–50  ·  view source on GitHub ↗
(label)

Source from the content-addressed store, hash-verified

45
46
47def callback(label):
48 ln = lines_by_label[label]
49 ln.set_visible(not ln.get_visible())
50 ln.figure.canvas.draw_idle()
51
52check.on_clicked(callback)
53

Callers 2

callback_funcMethod · 0.85
mpl.jsFile · 0.85

Calls 3

set_visibleMethod · 0.45
get_visibleMethod · 0.45
draw_idleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…