Unrecognized property 'TicksBetween' for class 'matlab.graphics.axis.Axes'.
20 次查看(过去 30 天)
显示 更早的评论
I get this error while running following
ax=gca;
ax.TickDir = 'out';ax.TickLength=[0.0075, 0.0075];ax.TicksBetween= 1;
I want only one minor tick mark between tick marks, Please suggest me!
0 个评论
采纳的回答
Guillaume
2019-8-22
As far as I know TicksBetween has never been a property of axes.
ax.XAxis.MinorTickValues = movmean(ax.XAxis.TickValues, 2, 'EndPoints', 'discard');
ax.XAxis.MinorTick = ' on';
will give you exactly one minor tick between each major tick.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!