Andrea Gavana wrote:
> Yes, I thought about FloatCanvas. Probably I don't know it very well,
> but my one of my requirements was to be able to have a legend for the
> lines plotted, and as far as I remember I couldn't do it in
> FloatCanvas.

You're right, there is no facility for that at the moment. I'm just put 
a legend in a separate window, instead. But then if you save the image, 
you don't get the legend.

The key issue with making a legend is that all DrawObjects use "world" 
coordinates, so a legend object would be in a given place in world 
coordinates, where you would probably want it to stay in the same place 
with respect to the Window, when zooming and panning.

I've thought about allowing that sort of positioning. I've made a bit of 
a start with the:

Canvas.GridUnder and GridOver

Attributes. You might be able to make a legend as a Grid object. See the 
Grid.py demo in demos.

Google Earth has a system that allows you to place certain objects (like 
legends) according to window location: top, left, bottom, etc. That's 
probably what I should do.

> Other than that, I will adapt my code to use FloatCanvas (even without
> legend, just to see the performances): if I am able to make it work (I
> am that good with FloatCanvas :-( ), 

Let me know, and consider joining the mailing list and sending questions 
there -- I like to get discussion archived (I've cc'd this to the list):

http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

> By the way, I'll try to dig in with FloatCanvas, and as soon as I
> master it a bit more I will be more than happy to be a contributor to
> your wonderful set of classes.

That would be great -- you've done some wonderful work with wxPython.

-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

[EMAIL PROTECTED]
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to