how to save a image as jpg from matplotlib figure code example Example: save matplotlib figure plt.savefig('image.png')