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

2006-09-18 Thread Martin Spacek
I've updated the docstring with a comment about display issues in wxGTK. 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 it's the

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

2006-09-14 Thread Christopher Barker
Martin Spacek wrote: > That initial tooltip never shows up for me, which I think is the correct > behaviour, Probably. You have that Enable(False) call in there. However, I notice from the docs that wx.ToolTip.Enable() is a "global" call -- it doesn't just enable or disable that particular tool

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

2006-09-14 Thread Martin Spacek
> What is this supposed to give you. I get a Very long tooltip box with: > > tip with a > long > line and a newline > > > In it. > > then, when the mouse starts moving, I get a tip that is just the right > size to hold the two coords, each on their own line. That initial tooltip never shows u

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

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

2006-09-12 Thread Martin Spacek
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 it's the best way of doing this, but it seems to work really well for me. Perhaps it would be useful to add thi