How to costumize Font Type using 'latex' 'interpreter'?

Hi! I can't seam able to put:
xLabel
Title
Legend
Ylabel
Ylabel (using plotyy)
and Ticks
in the same font type (to be specific SansSerif. Or at least not the default of Matlab nor Latex e.g Helvatica,CM ) . Moreover is would be necessary to so using 'interpreter','latex'
I've spent the whole day trying to solve this and I've tried several combinations, using FontName, \textsf and 'defaultAxesFontName' but all fail...
I did however get allot of "Warning: Font cmss10 is not supported."
Any help is most welcome.

3 Comments

ticks doesn't use either TeX or LaTeX interpreter but should honor FontName from the current axes object -- in fact, testing shows they do.
[X|Y]label, Title and Legend have their own properties.
I'm not sure if there's a way to make them inherit from a figure or not and I've never been all that great on modifying the default properties stuff.
S Lord posted not terribly long ago a pretty good explanation on at least some of those altho I couldn't find the precise post otomh...
Yeahh... Apparently not only a proper font function is not implemented in matlab for latex, but the SansSerif of matlab is like different frome the one in latex....
Do you know if there is a practical way to implement latex-kind equation writing in matlab labels so not to use the interpreter and then be able , to set the font in matlab plots?
Say what? What would LaTeX-writing be w/o the interpreter to do something with it?
The font is dependent upon the system-installed font's not the interpreter, anyway, as far as characteristics.

Sign in to comment.

Answers (0)

Asked:

on 19 May 2014

Commented:

dpb
on 20 May 2014

Community Treasure Hunt

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

Start Hunting!