In Matlab, I am using LaTex
interpreter as default and CMU Serif
as in Latex as my default font through the following commands inside startup.m
.
set(0,'DefaultTextFontname', 'CMU Serif');
set(0,'DefaultAxesFontName', 'CMU Serif');
set(0,'defaulttextinterpreter','latex');
The plot produced from Matlab
appears like this, with the fonts in place:
However, upon saving the above image as eps
using either print
or saveas
command produces figure with all the ticks and label in a different font:
Can someone suggest, what is the issue resulting in different fonts?