How can I personalize at the same time both the figure's size and the axis fontsize?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ander de Marcos Arocena
el 7 de Jun. de 2021
Comentada: Ander de Marcos Arocena
el 18 de Jun. de 2021
Hi, I want to adjust my figure to a certain size in order to export it. At the same time, I want to increase the fontsize of the numbers in the corresponding axis (yticks). I already know how to change the xlabel or ylabel but I want to change these small numbers numbers too.
In addition I would also apreciate another way of inserting greek symbols and other type of characters in the xlabel or ylabel without using latex interpreter becouse it changes the font style.
Than you in advanced,
xini=0.13;
ytop=0.33;
width=0.590;
width=0.45;
height=0.55;
ax = gca;
ax.FontSize = 40;
figure()
axes('Position',[xini ytop width height]);
set(gca,'FontSize',40)
plot(M_array,HDF_rms2,'color',color1,'Linewidth',2)
xlabel('$\theta [rad]$','Interpreter','latex','FontSize',50)
ylabel('$ylabel$','Interpreter','latex','FontSize',50)
0 comentarios
Respuestas (1)
Srivardhan Gadila
el 14 de Jun. de 2021
You can refer to FontSize property of Axes Properties and Change x-Axis Label Font Size and Color or Create y-Axis Label and Set Font Properties for changing the font size.
Ver también
Categorías
Más información sobre Labels and Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!