From: Eric F. <ef...@ha...> - 2007-11-16 05:36:47
|
Jordan Atlas wrote: > Hello, > > Is it possible to 'save' a matplotlib figure object using something > like the python pickle module? Basically, I'd like to save the 'figure' > as a file so that I can open it and manipulate it if something is > wrong. Alternative suggestions are welcome. > > Thank you, > > --Jordan Atlas Jordan, No, this has been requested before but it is not an easy modification of mpl to make. The alternative suggestion is to always encapsulate the making of a figure in a script, and then save the script and the data. If you want to save the combination in a single file, then arrange for the script and data to reside in a single subdirectory, and zip or tar that subdirectory. Eric |