Unrecognized property 'TicksBetween' for class 'matlab.gr​aphics.axi​s.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!

采纳的回答

Guillaume
Guillaume 2019-8-22
As far as I know TicksBetween has never been a property of axes.
You can set the location of the minor ticks by changing the MinorTickValues of the numeric ruler:
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 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by