Problem changing axis properties, Ubuntu

3 次查看(过去 30 天)
Hi,
I have a weird problem when trying to change the text and axis propertis of a figure. I can change the properties for title, xlabel and ylabel properly but as soon as I'm trying to change the axis properties (like fontsize or fontname) it isn't working, the same problem occurs when Im using the function text. I can also change it properly using the figure properties editor in the graphical interface. Her are a bit of my code that isn't working:
set(gca,'FontSize', 20) %does nothing
text((r4,r4,'5 m'],'HorizontalAlignment','Right','VerticalAlignment','Bottom',...
'FontName','Bitstream Character','FontSize', 20) %here everything works except the font
Another problem is that the only font that seem to be working, even in the GUI is that Bitstream Character is the only font working.
There is also some problem with writing å,ö,ä in figures but there I've found a workaround using Latex as interpreter and \aa{},\"{a},\"{o} instead.
I'm sorry for asking so many questions at once but I thought they might be related.
Thank you!
\\Måns

回答(1 个)

Walter Roberson
Walter Roberson 2012-5-7
In particular, Daniel's answer there works on some systems.

类别

Help CenterFile Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by