필터 지우기
필터 지우기

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

조회 수: 4 (최근 30일)
Sim
Sim 2024년 6월 25일
편집: Sim 2024년 6월 27일 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]);

채택된 답변

Sim
Sim 2024년 6월 25일
편집: Sim 2024년 6월 27일 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;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by