Hi,

This sounds actually very interesting. I have been thinking about how to 
save matplotlib figures in a way comparable to the Matlab .fig format: a 
file that holds the data (for instance using HDF5/pytables, some figures 
might hold a lot of data) and the plotting commands to exactly 
reconstruct the figure. However, I never got around of thinking about an 
actual implementation for Matplotlib. Hopefully your work can inspire me 
to actually get it started , and I will try to find some time to dig in 
your code the coming weeks.

At the Spyder mailing list the idea of saving figures a la Matlab 
briefly popped before as well: 
http://groups.google.com/group/spyderlib/browse_thread/thread/bf582bac96ff875/d5e94fe9296afbe5
 


I think saving figures in this manner would be a nice feature for 
matplotlib.

Thanks for sharing this!

Regards,
David

PS: sorry to Sebastian for sending the message twice

On 15/03/12 11:22, Sebastian Berg wrote:
> Hey,
>
> last weekend I wrote a hook which can track figure creation. Basically
> it takes care of creating the new figure and wraps it to track all
> changes to it. Its a hack, and the code is not cleaned up or tested
> much, but I like to do scripts that I run with many parameters to create
> plots and it works well to allow me to open the figures in a way that I
> can zoom, etc. and would allow editing (a bit) later on too. So while I
> doubt the approach can be made something serious, and there are probably
> things that don't work (right now 3D Axis can be done with a bit extra
> but mouse zooming does not work inside a 3D Axis, though I think its
> likely not difficult to change), I thought I would put it online because
> I am not aware of any way to save matplotlib figures:
>
> https://github.com/seberg/haunter-for-matplotlib-figures
>
> Maybe someone finds it useful or interesting :)
>
> Regards,
>
> Sebastian Berg
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to