|
From: Anthony F. <ant...@gm...> - 2008-09-16 20:12:34
|
On Tue, Sep 16, 2008 at 3:06 PM, Josef Koller <jk...@la...> 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. > > Thanks a lot, > > Josef As you've already been told, you can't pickle/shelve mpl objects. Our solution to this is to have a native python shadow object that contains all the bits and pieces needed to create a figure, and always build the plots from these shadow objects. This gives us the advantage of being able to shelve the shadow objects and rebuild the figures later. Of course, we're doing this in context of a large program using the mpl api, so if you're just using pylab, you're a bit SOL. A> |