Changing only axis fontsize
Mostrar comentarios más antiguos
Hi all,
I'm wrinting a function that I run just before exporting my figures in order to increase the fontsize of the axis TICKS labels (basically, numbers). I'm doing this as follows:
fig = gcf();
fig = get(fig,'Parent');
ax = findobj(fig,'type','axes', ...
'-not','Tag','legend','-not','Tag','Colorbar');
set(ax,'fontsize',13)
The problem here is that when I do that, it also changes the fontsize of my labels because they are included in my "ax" variable (I change them in my main.m).
How can I select only the and not also the labels created with xlabel, ylabel or supblabel ?
Thanks !
2 comentarios
Md Alam
el 11 de Nov. de 2016
Little Addition to the question:
Can we change font of tick-labels of X and Y axis to LATEX? Just like axis labels.
Walter Roberson
el 11 de Nov. de 2016
With R2014b or later, the XAxis and YAxis rulers have a TickLabelInterpreter property. https://www.mathworks.com/help/matlab/ref/numericruler-properties.html
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Axis Labels en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!