# Using fonts from the fourier LaTeX package in Matlab plots

I'm using the fourier package to make my $\LaTeX$ documents look pretty, but they would be even prettier if I could mimic the same font in legends, axis labels etc. in my Matlab plots.

I know there are ways to find-and-replace texts in eps graphics within $\TeX$, but that would require me to specify all the labels in the .tex file as well, which I'd like to avoid if I can.

It's mostly just simple letters - no complicated math markup or anything - so just rendering alphabetical characters in the correct font would be sufficient.

I have tried for example

l = legend(planetNames); % PlanetNames is a cell array with strings
set(l, 'FontName', 'utopia'); % Tried Utopia as well with same result


but instead of the Utopia font, I get some ugly, monospaced placeholder font. How do I make this work?

I'm running Ubuntu 11.10, Matlab 7.12.0 (R2011a) and TeX Live 2009.

-
I'm thinking tex.stackexchange.com would be more suited to questions about LaTeX. –  Asaf Karagila Apr 8 '12 at 20:17
this is the right place to ask this sort of questions. –  leo Apr 8 '12 at 20:18
@Tomas: After I migrated your question to TeX.SE, I saw your comment, and I've reopened the question here, because (as you point out) the question is about doing something in Matlab. This is one of the rare occasions where I am in favor of having the same question on multiple sites - in particular, I feel that your question is much more likely to get an answer on TeX.SE. I let the TeX.SE moderators know what I did and we'll see what happens. –  Zev Chonoles Apr 8 '12 at 21:39
No TeX.SE isn't really the right place to ask how to get fonts into Matlab, even if they are LaTeX fonts. Some software related site would fit better. superusers.com maybe? (I'm one of the TeX.SE moderators, btw.) –  Martin Scharrer Apr 8 '12 at 21:59
@Zev, Thomas: Whether or not TeX.SE is the right place or not is irrelevant to the fact that math.SE is not the right place for this question. –  Asaf Karagila Apr 8 '12 at 22:28