You are reading an old version of the documentation (v2.2.0). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.disconnect.html
Version 2.2.0
matplotlib
Fork me on GitHub

Table Of Contents

This Page

matplotlib.pyplot.disconnect

matplotlib.pyplot.disconnect(cid)

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