所以我试图改变x和y轴的滴答间隔。但默认值是.5。我想将它改为数十。请帮忙。我最近尝试过类似的东西,但没有运气。
xMajorInterval = 10;
yMajorInterval = 10;
axisSet.xAxis.majorIntervalLength = CPTDecimalFromFloat(xMajorInterval);
axisSet.xAxis.minorTicksPerInterval = 4;
axisSet.xAxis.minorTickLength = 4.0f;
axisSet.xAxis.majorTickLength = 8.0f;
axisSet.xAxis.labelOffset = 1.0f;
axisSet.yAxis.majorIntervalLength = CPTDecimalFromFloat(yMajorInterval);
axisSet.yAxis.minorTicksPerInterval = 4;
axisSet.yAxis.minorTickLength = 4.0f;
axisSet.yAxis.majorTickLength = 8.0f;
axisSet.yAxis.labelOffset = 1.0f;