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

5 ビュー (過去 30 日間)
Sim
Sim 2024 年 6 月 25 日
編集済み: Sim 2024 年 6 月 27 日
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 日
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 Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by