Problem changing axis properties, Ubuntu

2 ビュー (過去 30 日間)
Måns Larsson
Måns Larsson 2012 年 5 月 7 日
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 件のコメント
Jan
Jan 2012 年 5 月 7 日
What is the default fontname for axes? Is it installed?

サインインしてコメントする。

回答 (1 件)

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

カテゴリ

Help Center および File ExchangeLabels and Annotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by