
Estoy usando Matlab 2016b en una máquina Linux de 64 bits.
Tengo la siguiente figura en Matlab:
Usando un script, hago algunos cambios en el texto de la figura y luego llamo a matlab2tikz
la función. Este script se proporciona a continuación.
%% Script to modify text properties and call matlab2tikz
openfig('example.fig')
hfig = gcf;
haxis = gca;
haxis.XLabel.String = 'XLABEL (x 1000)';
haxis.XLabel.FontName = 'Lucida Sans Typewriter';
haxis.YLabel.String = 'YLABEL (30 runs)';
haxis.YLabel.FontName = 'Lucida Sans Typewriter';
% change tick label fonts
haxis.FontName = 'Lucida Sans Typewriter';
haxis.Legend.FontName = 'Lucida Sans Typewriter';
haxis.XTickLabel = {'2','4','6','8'};
matlab2tikz('example.tex','width','\figurewidth');
close all
Cuando incluyo el ex.tex
en el archivo Latex, el pgfplot producido tiene
fuentes incorrectas
etiquetas x-tick incorrectas,
como se muestra en la captura de pantalla:
¿Alguien puede decirme qué estoy haciendo mal aquí?