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

17 visualizzazioni (ultimi 30 giorni)
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

Risposte (1)

Sreeja Banerjee
Sreeja Banerjee il 11 Giu 2015
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.

Categorie

Scopri di più su Characters and Strings 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!

Translated by