'Linewidth' property with Histogram function

15 ビュー (過去 30 日間)
Arla
Arla 2015 年 9 月 17 日
回答済み: Thorsten 2015 年 9 月 17 日
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
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
Image Analyst 2015 年 9 月 17 日
Get the counts with your favorite histogram function, then use bar(), plot(), or something to plot it.

Thorsten
Thorsten 2015 年 9 月 17 日
stairs(counts, 'LineWidth', 2)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by