Setting histogram bar width

조회 수: 7 (최근 30일)
Jared
Jared 2013년 2월 19일
I use the following code to create a histogram, and set the properties, but the bar widths do not stay consistent. Any ideas why?
[n,x]=hist(data{1,j}{1,5});
h(j)=bar(x,n,'BarWidth',.05,'FaceColor',color_prop(j,:),'EdgeColor',color_prop(j,:));
I do this for multiple data sets (using j in a loop).

답변 (0개)

카테고리

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