GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Original report at SourceForge, opened Wed Feb 4 17:55:56 2009
In Matlab we have ability to save figures to .fig format. Gnuplot also has same ability cause save figures as scripts and data. It allows us:
Seconding! The ability to easily pickle or otherwise save & reload both data and figure configuration is lacking terribly. Lots of figures have to be altered later on for publication, presentation etc. Currently the full python code for loading the data and creating the figure has to be kept -- /very/ old-fashioned, I'd say.
This would indeed be a great feature. We have experimented with it in the past trying to pickle matplotlib figures, but have encountered problems with pickling CXX extension code, on which mpl relies heavily.
I would like to have this feature too! How about using this technique http://stackoverflow.com/a/9325185/727827 to make classes defined in C picklable?
I've done some initial work into the feasibility of pickling figures - and its looking promising. I expect to make a PR for it in the next week or so.
matplotlib now has experimental pickling support which will be available from 1.2. Realistically this is the furthest that I can envisage us going in terms of providing our own "native format for figures": The overhead of managing and maintaining such a feature would swamp any other work we do.