'Linewidth' property with Histogram function
显示 更早的评论
I am trying to change the LineWidth property of a histogram function with DisplayStyle 'stairs', however h.LineWidth does not exist and gives an error:
Error using matlab.graphics.chart.primitive.Histogram/set There is no LineWidth property on the Histogram class.
1 个评论
Adam
2015-9-17
So far as I can see there is no option to change the line width for a histogram.
回答(2 个)
Image Analyst
2015-9-17
0 个投票
Get the counts with your favorite histogram function, then use bar(), plot(), or something to plot it.
Thorsten
2015-9-17
stairs(counts, 'LineWidth', 2)
类别
在 帮助中心 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!