Plotting function on top of histogram

I would like to plot a function on top of a histogram, using the same coordinate axes. Is this possible? Or alternatively, is it possible to plot a function with an image as the background (so that I can save the histogram as an image and then use it as a background).

Thank you in advance,
/David