How can I change the spacing/number of ticks in a figure?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Carlo Vignali
il 30 Gen 2019
Commentato: Carlo Vignali
il 31 Gen 2019
This is basically what I want my graph to look like, but I can't get the yticks to align with the center of each bar so that they can be labeled properly. I've looked at previous posts and havent been able to find a solution.

graphValues=rand(24,1);
barh(graphValues)
0 Commenti
Risposta accettata
Ollie A
il 30 Gen 2019
This link should help:
It says you can specify the ticks on the y-axis. In your case it would be done as follows:
yticks([1:24])
Hope that helps!
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Axis Labels in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!