Clear Filters
Clear Filters

How to specify dotted line for histfit?

4 views (last 30 days)
Leon
Leon on 1 Dec 2017
Edited: Greg on 2 Dec 2017
The default fitted line in histfit is a continuous line. How do I replace it with a dotted line?
Thanks.

Accepted Answer

Greg
Greg on 2 Dec 2017
Edited: Greg on 2 Dec 2017
Oddly, it doesn't look like you can specify it at runtime. You'll have to save the handle, and apply LineStyle afterward.
h = histfit(data);
h(2).LineStyle = ':';

More Answers (0)

Tags

Products

Community Treasure Hunt

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

Start Hunting!