How to format a histogram with a density curve?

So I'm trying to plot a histogram with a density curve using histfit and so far I have
but I need to get it to look like
I looked through the properties of both the histogram and the line, but I can't seem to figure it out? The values of the histogram will vary each time it is created so I'm only asking about general formatting and not the content of the histogram.

Answers (0)

Asked:

on 23 Jul 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!