Problems with positioning of data labels in a stacked bar chart created by Matlab App
Ältere Kommentare anzeigen
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?
Antworten (1)
Ajay Pattassery
am 23 Jul. 2020
- You can use xticklabels to add labels to the bar plot at points defined in xticks.
bar([2 3 4])
xticklabels({'first','second','third'})
legend('data')
Kategorien
Mehr zu Bar Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!