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 datasavefig(
- saves chart to the specified image fileplot.png
- image file to save chart to
group: image