Unwanted space before greek letters

Hello, I want to use Greek letters on my plot labels, but using the command \psi creates an unwanted space in front of the Greek letter, so from the command:
xlabel('Radial distance [r(\psi)]')
I get a spacing between the first bracket '(' and the Greek letter '\psi'. I have also tried the commands
xlabel('Radial distance [r({\psi})]')
xlabel('Radial distance [r(\{psi})]')
xlabel('Radial distance [r($\psi$)]')
But with no luck. Any help will be appreciated. Thank you.

3 Comments

Which MATLAB release are you working with? It works just fine in R2013b.
Might depend upon the OS or on the font ?
I have the same issue with R2015a and R2014b on two different Linux machines. The plot window shows up fine, but when I saveas PDF extra white spacing is attached in front of my greek symbols.

Sign in to comment.

Answers (2)

the cyclist
the cyclist on 11 Mar 2015
Can you share a screenshot? Mine looks fine:
[OS X; R2014b]
The problem persists in R2018b (Linux) for eps export: the label is correct in the Matlab figure window, but the exported figure has a large, extra space in front of the mu.

Categories

Asked:

Tim
on 28 Jan 2014

Answered:

on 2 Nov 2018

Community Treasure Hunt

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

Start Hunting!