I have a problem with bar ploting. This is the code and picture is in attachment
figure
c=histc(sondaza(:,i),e);
h=bar(e,c, 'histc');
set(h,'FaceColor','b'); hold on;
How remove blue *??

 채택된 답변

Kelly Kearney
Kelly Kearney 2014년 4월 25일

0 개 추천

The stars are an odd peculiarity of the 'histc' option... I'm not sure what the original programmer's motivation was, but if your bin widths are not even, markers are placed along the x-axis at each bin edge. The handle to this line object isn't returned, so you'll have to handle-dive to get rid of them:
delete(findobj('marker', '*'));
I'd be curious to know where this convention came from... I use the 'histc' option with bar all the time, but it is an undocumented legacy option (and is implemented via barV6.m, which "is undocumented and may change in a future release"), so I too discovered the * behavior accidentally.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Graphics Objects에 대해 자세히 알아보기

태그

질문:

2014년 4월 25일

댓글:

2014년 4월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by