loadfig#

loadfig(filename=None)[source]#

Load a plot from a file and reanimate it.

Example usage:

import matplotlib.pyplot as plt
import sciris as sc
fig = plt.figure(); plt.plot(np.random.rand(10))
sc.savefigs(fig, filetype='fig', filename='example.fig')

Later:

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