Xticklabels not labelling appropriate bars in barplot
23 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm trying to label the Xticks on a bar chart to show variable importance. There are 20 variable bars. However, only some are showing xtick labels and they're lininig up with the respective bar. Looks like they're skipping and not aligning.For instance, 'rop' isn't aligned with the first bar despite being the first variable name.
I've tried to expand the figure to a full window but get the same result (second screengrab).
What needs to be done to label each x tick with the respective variable name?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/939439/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/939444/image.png)
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Axis Labels dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!