matplotlib pyplot save axesplot code example Example: save matplotlib figure plt.savefig('image.png')