I've added annotations to a graph I am producing using matplotlib. The annotations work fine, but when you zoom and pan, the annotations move off the edge of the chart and are still visible while they're in the main TK window. Does anyone know of a way to make the annotations disappear when they move off the edge of the chart?