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

Table of Contents

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