Borrar filtros
Borrar filtros

Issue with font when exporting eps

3 visualizaciones (últimos 30 días)
MichailM el 20 de Dic. de 2019
Comentada: Soumya Paul el 14 de Nov. de 2021
I have the code example below:
close all;
clear all;
t = linspace(0,2/50,1000);
w = 2*pi*50;
y = sin(w.*t);
f1 = figure(1);
set(gca, 'FontName', 'Garamond')
set(gca, 'Fontsize', 12)
xlabel('Time (s)')
ylabel('Voltage (V)')
print(f1,'-depsc2', 'MyPlot');
When saving in .eps format the the axis and ticks font are not exported properly and that is a significant issue for LaTeX users. Are there any ideas on how can be fixed?

Respuesta aceptada

Harsha Priya Daggubati
Harsha Priya Daggubati el 23 de Dic. de 2019
You can try setting the “TickLabelInterpreter” property of axis in the figure to “latex”. Hope this resolves your issue.
set(gca,'TickLabelInterpreter', 'latex')
  1 comentario
Soumya Paul
Soumya Paul el 14 de Nov. de 2021
It really helped me. Thank you Harsha.

Iniciar sesión para comentar.

Más respuestas (0)


Más información sobre Printing and Saving en Help Center y File Exchange.


Community Treasure Hunt

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

Start Hunting!

Translated by