when bbox is set to 'tight' #savefig.directory: ~ # default directory in savefig dialog, gets updated after # interactive saves, unless set to the empty string (i.e. # the current directory); use '.' to start at
Here is an example Python code that creates theMatplitlibfigure, saves to a file, and loads it back: importpickleimportmatplotlib.pyplotasplt# create figurefig=plt.figure()plt.plot([4,2,3,1,5])# save whole figurepickle.dump(fig,open("figure.pickle","wb"))# load figure from filefig...
savefig() can be passed a file-like object in place of a file path. - MGD2007-11-13 Improved the default backend selection at build time: SVG -> Agg -> TkAgg -> WXAgg -> GTK -> GTKAgg. The last usable backend in this progression will be chosen in the default...