所以我试图改变 x 和 y 轴的刻度间隔。但默认值为 0.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;