How can I export a figure with non-Latin (eg Greek) characters?
조회 수: 7 (최근 30일)
이전 댓글 표시
I want to create a plot with MATLAB 2012b and label one axis with the Greek letter 'omega'. I use the following code:
xlabel('\omega, cm^{-1}', 'Interpreter', 'TeX')
The Greek character and the superscript text display correctly on screen.
I then want to actually use the figure, so I export it as EPS (the only publication-quality vector graphics format I know). Unfortunately the Greek letter is gone and replaced by a latin 'w'.
Am I doing something wrong? If this is a bug, is there a workaround?
댓글 수: 2
Rik
2023년 5월 17일
This sounds like the target platform doesn't include Greek letters in the chosen font and therefore converts to the Latin equivalent letters. You should confirm with a third program whether this is a Matlab issue in writing, or an issue with reading in your target application.
답변 (1개)
Menika
2023년 6월 14일
Hi,
You can try exporting to the EPS format using the following command in the command window:
print('myplot.eps', '-depsc');
Here 'myplot' is the name of the figure.
This commands will save your plot as an EPS file in the current directory.
Hope this helps.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Labels and Annotations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!