matplotlib/matplotlib — pull request #1506 by ivanov (2012-11-16 03:18:28+00:00)
Title: DOC: make example cursor show up in the docs

As can be seen over in [our gallery](http://matplotlib.org/gallery.html#widgets), the cursor widget does not get displayed in the generated image, since documentation images get generated without a GUI backend.

I've modified that example so that the image the gets generated actually will have a red cursor, by "injecting" a fake GUI event.

This is a documentation only update, but wanted to get feedback if people think this is ok. I just think that visually, it makes it much easier to find this example or see what it might be doing with my proposed change.