Azzera filtri
Azzera filtri

Problem changing axis properties, Ubuntu

3 visualizzazioni (ultimi 30 giorni)
Måns Larsson
Måns Larsson il 7 Mag 2012
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 Commento
Jan
Jan il 7 Mag 2012
What is the default fontname for axes? Is it installed?

Accedi per commentare.

Risposte (1)

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

Categorie

Scopri di più su Specifying Target for Graphics Output 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