Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 439 Bytes

how-to-export-to-png.md

File metadata and controls

16 lines (11 loc) · 439 Bytes

How to export to png

import matplotlib.pyplot as plt
plt.plot([1,3,2])
plt.savefig('plot.png')
  • import matplotlib.pyplot as plt - loads lib:Matplotlib module to use plotting capabilities
  • .plot( - plot specified data
  • savefig( - saves chart to the specified image file
  • plot.png - image file to save chart to

group: image