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