plot_fn function

A function to plot a plot.