loadmetadata#
- loadmetadata(filename, load_all=False, die=True)[source]#
Read metadata from a saved image; currently only PNG and SVG are supported.
Only for use with images saved with
sc.savefig()
. Metadata retrieval for PDF is not currently supported. To load metadata saved withsc.metadata()
, you can also usesc.loadjson()
instead. To load metadata saved withsc.savearchive()
, usesc.loadarchive()
instead.- Parameters:
Example:
plt.plot([1,2,3], [4,2,6]) sc.savefig('example.png') sc.loadmetadata('example.png')