Borrar filtros
Borrar filtros

Problem changing axis properties, Ubuntu

3 visualizaciones (últimos 30 días)
Måns Larsson
Måns Larsson el 7 de Mayo de 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 comentario
Jan
Jan el 7 de Mayo de 2012
What is the default fontname for axes? Is it installed?

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 7 de Mayo de 2012
In particular, Daniel's answer there works on some systems.

Categorías

Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by