When plotting figures in MATLAB you can use
text('Interpreter','latex',...
'String','$$\int_0^x\!\int_y dF(u,v)$$',...
'Position',[.5 .5],...
'FontSize',16)
To get a latex interpretation and representation of the string. (Taken from the help)
But is there anyway that you can set latex as the default interpreter for all the text and numbers in the figure?
Thanks in advance.
>But is there anyway that you can set latex as the default interpreter for all the text and numbers in the figure?
Try Googling for
set latex as the default interpreter in matlab
Sets this at the root level.
Thank you :)
that helped for axis labels and legend. Is there anyway to format the numbers on the axis as well?
This would mainly be to change to font into the same as the default font I use in latex i think. Anyone know how I do that?
Change your default axes font (e.g to Courier):
set(0,'defaultaxesfontname','courier')
Have a look at 'Setting Default Property Values' in Help to get an idea...
btw: to create ticklabels in LaTex format: http://www.mathworks.se/matlabcentral/fileexchange/?term=tick+label+latex
btw:
latex fontname is cmu serif...