|
From: Andrea G. <and...@ti...> - 2006-02-06 20:03:20
|
Hello Chris, > Are you using MPL with wxPython? I'd expect so. Yes, I am using it with wxPython, and I am sometimes frustrated by the difficulty to find which method in matplotlib API does something that Pylab does with another syntax. > Make sure to check out wxmpl and/or Mplot: I have checked wxmpl, but it seems to me that it has the same mouse events as matplotlib has (button down/up/motion) and nothing more. Moreover, both matplotlib and wxmpl fail to get the mouse_down event if you click very fast on the figure canvas. I mean, I can click say 30 times in 10 seconds on the MPL canvas, but only 20 clicks get captured by the event. So it's quite difficult to hack the single mouse_down event to simulate the double-click because quite often MPL misses a mouse click... wxmpl suffers of the same desease, from my tests. So I ended up in a dirty hack of a MPL single mouse_down to transform it in a double-click, but quite often I have o click 3/4 times to get the double-click working. I don't think it's the slowness of my PCs, because they are quite fast. Thank you very much for your suggestions. Andrea. "Imagination Is The Only Weapon In The War Against Reality." http://xoomer.virgilio.it/infinity77 |