In [5]: plt.savefig('books_read.png')
import matplotlib.pyplot as plt plt.figure() plt.plot([1,2,3],[1,2,3]) plt.savefig("out.png")