Using matplotlib OO rather than the pylab functions to save graphic context (fig

Hi list,

I'm under windows XP SP2 using python 2.3.5, matplotlib 0.80 and pygtk 2.6.0.
I'm trying to program a viewer of data using matplotlib.
I want to be able to save end reuse current graphic context (figure, title, axes, labels...).
I decided to explore the matplotlib code.
But I'm not sure how i can get the current figure.

I want to be able to save the current graphic context, draw a figure, then reload other data and add them to the current figure already drawn.

Has anyone done that before?
John, can you explain me how to proceed?

Thanks a lot,
Philippe Collet

···

_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis ! http://www.msn.fr/msger/default.asp

Hi list,

I'm under windows XP SP2 using python 2.3.5, matplotlib 0.80 and pygtk
2.6.0.
I'm trying to program a viewer of data using matplotlib.
I want to be able to save end reuse current graphic context (figure, title,
axes, labels...).
I decided to explore the matplotlib code.
But I'm not sure how i can get the current figure.

I want to be able to save the current graphic context, draw a figure, then
reload other data and add them to the current figure already drawn.

Has anyone done that before?
John, can you explain me how to proceed?

A good place to start to get a feel for how to do this kind of thing is to
look in the examples directory of the source tree. In particular the
embedding_in_* ones may be of interest to you.

Feel free to get back to us if this doesn't give a good enough starting
point.

Cheers,

Tim

Thanks a lot,
Philippe Collet

_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis !
http://www.msn.fr/msger/default.asp

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

`-

···

On Wed, 15 Jun 2005, Philippe Collet <philopensource@...32...> wrote...