|
From: Christopher B. <Chr...@no...> - 2006-09-13 18:52:57
|
Martin Spacek wrote:
> Attached is an example file of
> what I've got running now. It should run on its own. A wx tooltip pops
> up whenever the mouse is over the axes.
cool.
I had to make a change to get it to run:
mpl.use('WXAgg') has to come before "import pylab"
once running, it's not working quite right: the tooltip always is at the
bottom of the Window, though it does track the X location.
oddly it looks likeit's getting it's coords in figure units (0 to 1),
whcih shouldn't work with a wxWindow.
Also, I'm getting the tooltip even when the window doesnot have focus
and is under other windows -- at least when the mouse is over an exposed
part of the window. That's probably a wx issue.
Python 2.4.3
>> wx.__version__
'2.6.3.0'
>>> matplotlib.__version__
'0.87.5'
wxGTK on on Fedora core 4 linux.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
|