How to control number of minor ticks between the major ticks?
134 次查看(过去 30 天)
显示 更早的评论
How to put desired number of minor ticks between two major ticks.
Like for a 24 hours data, I may like to indicate every 15-min data with a minor tick.
In that case I may need 3-minor ticks per 1 major ticks.
Other way round, if i need to indicate every 30-min data with a minor tick.
In that case I may need 1-minor ticks per 1 major ticks.
So how to control these number of tick marks??
Any suggestions...?
0 个评论
采纳的回答
Jan
2018-10-26
You can specify the MinorTickValues:
axesH = axes;
plot(axesH, 1:10);
axesH.XAxis.MinorTick = 'on';
axesH.XAxis.MinorTickValues = 1:0.25:10;
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!