Josef,


I too have been interested in such a feature for matplotlib and have
made some (albeit lame) stabs at finding a solution.  I started a
project on google code that has some very limited capacity to save line
plots and the necessary data arrays from matplotlib into an hdf5 file for later 
processing.  It is by
no means a complete solution but may serve as a VERY rough model to add
this functionality.  It was my hope that if you could capture the
underlying keyword arguments necessary to recreate a plot then you
might be able to simply recreate the original figure assuming the
correct interpreter functions are established.  Anyway, if you are interested 
please take a look to see if there may be something useful.  From the 
perspective of the IPython users out there, a question to you: is there a good 
way to do achieve this feature with some of the logging commands?  

http://code.google.com/p/subplot/

Cheers,

Brian

-ps excuse the name of the project--I lacked creative drive at the time of 
naming.

--- On Tue, 9/16/08, John Hunter <[EMAIL PROTECTED]> wrote:
From: John Hunter <[EMAIL PROTECTED]>
Subject: Re: [Matplotlib-users] save or pickle figure object
To: "Josef Koller" <[EMAIL PROTECTED]>
Cc: matplotlib-users@lists.sourceforge.net
Date: Tuesday, September 16, 2008, 7:49 PM

On Tue, Sep 16, 2008 at 5:06 PM, Josef Koller <[EMAIL PROTECTED]> wrote:
> Hi folks,
>  I would like to save preliminary figures for later processing and
> refinement with matplotlib. Is there a way to save or pickle a figure
> object and later reload it. Matlab has a feature like that and and I was
> wondering if matplotlib has it too.

No, it doesn't exist.  We've taken a stab at it once or twice, but
have been stymied because we make extensive use of a python extension
libray CXX, and these objects have resisted our attempts to pickle
them.  With our recent transforms refactoring, which removes the
hairiest CXX dependency, it may be worth taking another look, but
noone is currently working on it.

JDH

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users



      
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to