To get tick label at extremes of an axis
2 次查看(过去 30 天)
显示 更早的评论
I get only -100 to 100, +125 and -125 are missing
xt=[-125 -100 -75 -50 -25 0 25 50 75 100 125]; yt=[-125 -100 -75 -50 -25 0 25 50 75 100 125]; set(gca,'XTick',xt); set(gca,'YTick',yt)
set(gca,'xticklabel',[-125 -100 -75 -50 -25 0 25 50 75 100 125])
set(gca,'yticklabel',[-125 -100 -75 -50 -25 0 25 50 75 100 125])
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!