Highlight highest bar in bar chart matlab
이전 댓글 표시
Is there anyway to highlight/mark the highest or lowest bar in matlab? I'm using the following code to plot bar chart
r2=10,20,30
figure;
bar(r2,'m');
set(gca,'XTickLabel',{'a','b','c'})
set(gca,'YTickLabel',{r2})
xlabel('shops');
ylabel('distance in kilometers')
please tell me how can i highlight highest bar i.e. 30 or lowest i.e. 10 ?
댓글 수: 2
the cyclist
2013년 7월 13일
Can you be more specific on what you mean by "highlight"? Do you want it to be a different color, or have some text over it that says "highest", or what?
Sarah
2013년 7월 13일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Bar Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!