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

14 Ansichten (letzte 30 Tage)
Matthew
Matthew am 10 Jun. 2015
Beantwortet: Sreeja Banerjee am 11 Jun. 2015
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

Antworten (1)

Sreeja Banerjee
Sreeja Banerjee am 11 Jun. 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.

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by