You can save the histogram as an image file using the plt.savefig() function. Simply provide the desired filename and file format as arguments to the function.