Re: [matplotlib-devel] example: wx.ToolTip for MPL axes

2006-09-13 Thread Martin Spacek
And here's yet another refinement. Works around a wx bug (see http://article.gmane.org/gmane.comp.python.wxpython/37937/match=tooltip) that prevents newlines from being recognized in the tooltip string. Also, disables the tooltip when the mouse moves off of the axes, which prevents stray toolti

Re: [matplotlib-devel] example: wx.ToolTip for MPL axes

2006-09-13 Thread Martin Spacek
Here's an updated version. mpl.use('WXAgg') should come before importing pylab. Martin Martin Spacek wrote: Not sure if this already exists, but here's an example file of how to get a wx.ToolTip to pop up and report the current mouse position in data coordinates over a MPL axes. Not sure if i