pi in xticklabel but not in other axes or title

Alright I'm able to use pi's in my xticklabels using set(gca,'FontName','symbol') but now my title is also using greek. Furthermore, the scaling factor of the y-axis (x 10^4) is read \xi 10^4, also using greek. How can I use greek font for the x-axis only?

Answers (1)

You cannot have a different font for the title and tick marks easily. You can overlay 2 axes on top of each other with each having a different font. If all you want is the pi symbol you can make use of the unicode support included in MATLAB. Just ask for the pi symbol. See: href=""<http://www.mathworks.com/matlabcentral/answers/16464-greek-letters-in-a-static-text-gui</a>>

Categories

Asked:

on 16 Apr 2012

Community Treasure Hunt

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

Start Hunting!