Axes fontsize not changing

32 visualizaciones (últimos 30 días)
Tamara Schlosser
Tamara Schlosser el 27 de Abr. de 2017
Comentada: Tamara Schlosser el 28 de Abr. de 2017
On my laptop (with an external nvidia graphics card) I cannot change the axes font size. For example the command:
axes('position',[.1 .1 .8 .8],'FontSize',8)
Produces an axes with the default size 10 font size, not 8. If I run the exact same code on my work PC it works perfectly. Labels and legends are generated with the correct font size. I'm using matlab R2017a on my laptop and R2013b on my work PC, but I think the issue is my graphics card as I've had other issues previously. Do I need to change its settings?

Respuestas (1)

AstroGuy1984
AstroGuy1984 el 27 de Abr. de 2017
A possible workaround may be to try:
figure('DefaultAxesFontSize', 10);
axes('Position', [.1,.1,.8,.8]);
Out of curiosity to the issue are you stepping through it and seeing that the fontsize command is being ignored? Because it's possible that it's getting reset elsewhere.
  1 comentario
Tamara Schlosser
Tamara Schlosser el 28 de Abr. de 2017
Thanks for your response. It seems I can use the above command to change the axes font size.
I'm finding the fontsize command is being ignored as I step through, it never changes. So far the fontsize commands are only ignored when called through axes...

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by