export_plot function

Save plot to a file