How to display Greek characters under each barchart culumn?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi
I want to the assign greek character below each bar chart column. However, it is not displaying the greek characters
The example of the code is below:
Number=[10 30 50 60 18 20]
bar(Number)
set(gca,'xticklabel',{'\alpha','M_{q}','M_n','Z_alpha','zeta','\omega'})
Hear from you people!
0 commentaires
Réponse acceptée
the cyclist
le 1 Nov 2014
Did your code properly display the first alpha? That one worked for me. I then tweaked the other ones for the small syntax errors you made:
Number=[10 30 50 60 18 20]
bar(Number)
set(gca,'xticklabel',{'\alpha','M_{q}','M_n','Z_{alpha}','\zeta','\omega'})
0 commentaires
Plus de réponses (1)
yashvin
le 1 Nov 2014
1 commentaire
the cyclist
le 1 Nov 2014
What do you get for
get(gca,'TickLabelInterpreter')
Try
set(gca,'TickLabelInterpreter','tex')
Voir également
Catégories
En savoir plus sur Labels and Annotations 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!
