필터 지우기
필터 지우기

bar plot

조회 수: 2 (최근 30일)
Raviteja
Raviteja 2011년 9월 12일
I have two sets of data to show on single bar plot to compare
So I have written like this
bar(HC_TRP(:,1),0.5,'g')
hold on
bar(MI_TRP(:,1),0.5,'r')
My problem is MI_TRP over writing the color on HC_TRP for some bins. At that instant I am unable to know what is the value of HC_TRP.. So any method to show HC_TRP correctly (for example: making transparent)

답변 (1개)

Walter Roberson
Walter Roberson 2011년 9월 12일
Perhaps it would make more sense to instead use
bar([HC_TRP(:,1), MI_TRP(:,1)], 0.5, 'stacked')
??
Transparency in a bar plot is possible to do, but it is not obvious code.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by