W3cubDocs

/Matplotlib 3.1

matplotlib.pyplot.disconnect

matplotlib.pyplot.disconnect(cid) [source]

Disconnect callback id cid

Examples

Usage:

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

Examples using matplotlib.pyplot.disconnect

© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.disconnect.html