- You can use xticklabels to add labels to the bar plot at points defined in xticks.
Problems with positioning of data labels in a stacked bar chart created by Matlab App
조회 수: 2 (최근 30일)
이전 댓글 표시
I created a Matlab app to draw bar chart. The plot works fine. But, I am experiencing 2 problems:
1) It seems that I can not freely put the data labels where I want in the graph
2) I do not know how to te show/create the legend
Could anyone please advise me?
댓글 수: 0
답변 (1개)
Ajay Pattassery
2020년 7월 23일
bar([2 3 4])
xticklabels({'first','second','third'})
legend('data')
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Bar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!