フィルターのクリア

How do I get and Angstrom symbol to export to an eps?

18 ビュー (過去 30 日間)
Matthew
Matthew 2015 年 6 月 10 日
回答済み: Sreeja Banerjee 2015 年 6 月 11 日
Hello,
I am trying to export a plot to eps. The axis are in Angstroms and I would like to use the Angstrom symbol as the axis label (it's an A with a little circle above it or char(197)). When I export it using the font Helvetica, it works fine. When I export it using Times New Roman, the font I would like to use, it just prints an A. The eps file has the character listed as \305\ which I think is correct.
Does anyone have any idea how to fix this? I'm using Matlab R2013b.
Thanks

回答 (1 件)

Sreeja Banerjee
Sreeja Banerjee 2015 年 6 月 11 日
I tried to change the font from Helvetica to Times New Roman and I did not see a difference. The code I tried is given below:
>> plot(rand(5))
>> xlabel('units in \AA','Interpreter','latex')
>> ylabel('units in \AA','Interpreter','latex','Fontname','TimesNewRoman')
>> print -depsc fig.eps
I also tried in PDF and PNG formats and did not see an issue.
>> print -dpng fig.png
>> print -dpdf fig.pdf
If you are still facing the same issue then please attach the code for further help.

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by