필터 지우기
필터 지우기

Issue with font when exporting eps

조회 수: 2 (최근 30일)
MichailM
MichailM 2019년 12월 20일
댓글: Soumya Paul 2021년 11월 14일
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

채택된 답변

Harsha Priya Daggubati
Harsha Priya Daggubati 2019년 12월 23일
Hi,
You can try setting the “TickLabelInterpreter” property of axis in the figure to “latex”. Hope this resolves your issue.
set(gca,'TickLabelInterpreter', 'latex')
  댓글 수: 1
Soumya Paul
Soumya Paul 2021년 11월 14일
It really helped me. Thank you Harsha.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by