'Linewidth' property with Histogram function

조회 수: 11 (최근 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 CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by