how to get a plot in python to be as a jpeg file code example Example: save matplotlib figure plt.savefig('image.png')