1 2 3 4 5 6
import matplotlib as mpl import matplotlib.pyplot as plt plt.plot([1,2,3]) plt.savefig('plot.png')