Issue with font when exporting eps
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MichailM
il 20 Dic 2019
Commentato: Soumya Paul
il 14 Nov 2021
Hi,
I have the code example below:
close all;
clear all;
clc;
t = linspace(0,2/50,1000);
w = 2*pi*50;
y = sin(w.*t);
f1 = figure(1);
plot(t,y)
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?
![Capture.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/256554/Capture.png)
0 Commenti
Risposta accettata
Harsha Priya Daggubati
il 23 Dic 2019
Hi,
You can try setting the “TickLabelInterpreter” property of axis in the figure to “latex”. Hope this resolves your issue.
set(gca,'TickLabelInterpreter', 'latex')
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Printing and Saving in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!