How to display Greek characters under each barchart culumn?

조회 수: 14 (최근 30일)
yashvin
yashvin 2014년 11월 1일
댓글: the cyclist 2014년 11월 1일
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!

채택된 답변

the cyclist
the cyclist 2014년 11월 1일
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'})

추가 답변 (1개)

yashvin
yashvin 2014년 11월 1일
Hi,
Thanks for your response
No . It display the alpha as \alpha. Pleas see the image.
  댓글 수: 1
the cyclist
the cyclist 2014년 11월 1일
What do you get for
get(gca,'TickLabelInterpreter')
Try
set(gca,'TickLabelInterpreter','tex')

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by