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
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;
Cris LaPierre
Cris LaPierre 2020-12-6
@VBBV, if you move your comment to an answer, I'll vote for it.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by