Change the axis label unit length
1 次查看(过去 30 天)
显示 更早的评论
Hello everyone, I want to know how I can change the unit value of an axis, for example, I want the xaxis label to show values with a step of 1. In the standard form, it changes when you change the size of the plot, but I do not want that. Can anyone help me? Thank you
0 个评论
采纳的回答
Marc Jakobi
2016-10-23
You can set the XTick and XTickLabel properties.
ax = gca;
ax.XTick = [...]; %vector containing ticks you would like (spread evenly across axis)
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!