cómo guardar la figura de matplotlib a PNG
In [5]: plt.savefig('books_read.png')
Black Backed Magpie
In [5]: plt.savefig('books_read.png')
fig.write_image("images/fig1.png")