You can save a plot using the savefig() function, specifying the desired file format such as PNG, PDF, or SVG. For example, savefig('plot.png') will save the plot in PNG format in the current directory.