필터 지우기
필터 지우기

Bar graph comments/define colours

조회 수: 1 (최근 30일)
Alexandros Samp
Alexandros Samp 2016년 4월 5일
답변: Walter Roberson 2016년 4월 5일
Hello,
If i had a bar graph like this:
bar([1 2 3 ]',[4 5 6 ;6 7 8]','stacked')
How would i define the colour of the bar with a comments on the y axxis? for example
blue colour:'comment'
yellows colour: 'comment'
Thank you

채택된 답변

Walter Roberson
Walter Roberson 2016년 4월 5일
legend({'comment for lower bar', 'comment for higher bar'})

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by