### Navigation

- index
- modules |
- next |
- previous |
- home|
- examples|
- tutorials|
- pyplot|
- docs »
- The Matplotlib API »
- matplotlib.pyplot »

# 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`

Coords Demo