Greek letter on plotting cut off on Mac version 10.10.3

3 Ansichten (letzte 30 Tage)
Hello all!
My problem is that my greek characters are being truncated when I try to use them in x- & y-axis labels. For example, the code:
ylabel('\phi ','FontSize',14) or text(2.3,-0.13,'\Phi','FontSize',12,'fontWeight','bold') produces a y-axis label that looks like a lower-case phi that has been cut in half. Has anyone encountered this problem before, or can anyone tell me what I'm doing wrong? Thanks!
I am using Mac version 10.10.3 and Matlab 2014a

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 16 Jun. 2015
I am not encountering that problem with R2014a on OS-X 10.10.3 (the same setup you are using.) What I am seeing is a fairly closed lowercase phi when \phi is used, and an regular but not-pretty uppercase phi when \Phi is used.
Have you considered switching to LaTeX instead of TeX? The characters are nicer. See http://www.mathworks.com/matlabcentral/answers/14751-greek-alphabet-and-latex-commands-not-a-question
Interestingly I just found that if I had used ylabel() with 'interpreter' 'latex' and then I do a second ylabel (without having erased the graphics) without specifying the interpreter, that it continues to try to use latex and I have to specifically say 'interpreter', 'tex' to get it to switch.

Weitere Antworten (0)

Kategorien

Mehr zu Labels and Annotations finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by