Borrar filtros
Borrar filtros

How can I bring the xticklabels closer to the x-axis/xticks?

4 visualizaciones (últimos 30 días)
Sim
Sim el 25 de Jun. de 2024
Editada: Sim el 27 de Jun. de 2024 a las 13:12
How can I bring the xticklabels closer to the x-axis/xticks?
plot(1:10,1:10)
set(gca,'Fontsize',20,'FontWeight','normal',...
'LineWidth',1,'TickDir','out','box','off',...
'TickLength',[0.05 0.05]);

Respuesta aceptada

Sim
Sim el 25 de Jun. de 2024
Editada: Sim el 27 de Jun. de 2024 a las 13:12
Sorry, siilly question... I got it:
plot(1:10,1:10)
set(gca,'Fontsize',20,'FontWeight','normal',...
'LineWidth',1,'TickDir','out','box','off',...
'TickLength',[0.05 0.05]);
a=gca;
a.XRuler.TickLabelGapOffset = -8;

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by