matplotlib.pyplot.disconnect

matplotlib.pyplot.disconnect(cid)[source]

Disconnect the callback with id cid.

Examples

cid = canvas.mpl_connect('button_press_event', on_press)
# ... later
canvas.mpl_disconnect(cid)

Examples using matplotlib.pyplot.disconnect