python save plt as image code example Example 1: save plot in python plt.savefig('books_read.png') Example 2: save matplotlib figure plt.savefig('image.png')