Latex fonts in matlab

后端 未结 7 949
执念已碎
执念已碎 2020-12-24 08:19

Is it possible to convert the font of a matlab plot to be the same of latex fonts. For example I can modify the font of a plot by:

x = -pi:.1:pi;
y = sin(x);         


        
7条回答
  •  攒了一身酷
    2020-12-24 08:51

    If you export to .eps you can just edit the figure afterwards with a simple text editor and exchange the fonts in there. It is a bit fiddly but does the trick. You can also change the kerning of each character individually (because its position is hard-coded in there).

    It is also possible to change each character's font individually (I sometimes do this, if a need a symbol from Latex (i.e. Computer Modern), but want the rest of the label in Helvetica again)

提交回复
热议问题