greek letters cut off in y-axis subplot label

I'm having issues getting R2013a to properly display greek letters in the y-axis for a subplot. I've tried using tex and latex interpreters and neither seems to work as intended.
I've used the following with no success:
ylabel('$\lambda$E','Interpreter','LaTex')
ylabel('$\lambda$ E','Interpreter','LaTex')
ylabel('\lambdaE','Interpreter','Tex')
ylabel('\lambda E','Interpreter','Tex')
This seems to be unique to subplots. I don't have the same problem in full plots.
Are there any other properties I can set to get it to display properly? Changing the 'margin' property did not work.

4 Commenti

See if reducing the font size does what you want.
Changing the font size had no effect on the display of lambda.
Submit this to MathWorks as a bug report. There may be a published fix for it. Note that it could have been corrected in later releases.
This issue appears to have been corrected in later releases. I re-ran my script using R2015b and lambda displays properly.

Accedi per commentare.

Risposte (1)

Try putting spaces before the string. Nobody will notice if a space gets chopped off:
ylabel(' $\lambda$E', 'Interpreter', 'LaTex')

1 Commento

Unfortunately, this did not work. Lamba is still only half a letter.

Accedi per commentare.

Categorie

Richiesto:

il 9 Mag 2016

Commentato:

il 10 Mag 2016

Community Treasure Hunt

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

Start Hunting!

Translated by