How can I export a figure with non-Latin (eg Greek) characters?

1 回表示 (過去 30 日間)
Petar Lambrev
Petar Lambrev 2013 年 11 月 5 日
回答済み: Menika 2023 年 6 月 14 日
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 件のコメント
Jose Carrasco
Jose Carrasco 2023 年 5 月 17 日
I am as well interested in finding a solution to this issue!
Rik
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
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.

カテゴリ

Help Center および File ExchangeLabels and Annotations についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by