loadfig#

loadfig(filename=None)[source]#

Load a plot from a file and reanimate it.

Example usage:

import pylab as pl
import sciris as sc
fig = pl.figure(); pl.plot(pl.rand(10))
sc.savefigs(fig, filetype='fig', filename='example.fig')

Later:

example = sc.loadfig('example.fig')