[wxPython-users] Re: Recommend a plotting library?

Christopher Barker Chris.Barker at noaa.gov
Wed Apr 11 11:24:51 PDT 2007


Grant Edwards wrote:
> On 2007-04-11, Christopher Barker <Chris.Barker at noaa.gov> wrote:
>> Another option is FloatCanvas. I wrote it, and one of the
>> applications in mind is exactly that -- I use it for
>> triangular meshes with 1-10 thousand points with good
>> performance. It support full zooming and panning, etc.
> 
> That sounds cool.  And I can handle mouse clicks?

It sure does. You can either get where the mouse was clicked in pixel 
coords on screen, "world" coords you draw your objects in, or you can 
bind events to clicking on different objects, so your callback is called 
when the object is clicked.

I use MPL when I want "tradition" plotting: X,Y data with axes, legends, 
etc.

FloatCanvas is designed for general purpose drawing in arbitrary 
floating point coordinates, with zooming, panning, mouse events, etc. It 
does not make axes for you (though you could use it to do so). You can 
also do mapping with it.

-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list