How do I get and Angstrom symbol to export to an eps?
14 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Sreeja Banerjee
on 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.
0 Comments
See Also
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!