How do i change the spacing between axis ticks
20 次查看(过去 30 天)
显示 更早的评论
I am looking to change the distances between my tick marks.
I am using these numbers for my ticks but the small numbers r all on top of eachother while the big numbers at the end are large gaps. any way to make a more even spacing?
xticks([0 10 50 100 500 1000 5000 10000 15000]);
3 个评论
Daniel Guerra
2020-12-6
If the figure that you have obtained is the correct one, if this one is the one that you are looking for, you should only change the angle of the XTicks labels.
For example:
x = (1:1000)';
y = 15*rand(1000,1).*ones(1000,1);
figure
plot(x,y)
ax = gca;
ax.XTickLabelRotation = 45;
回答(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!