勾选间隔:将其从默认值更改

时间:2012-07-31 14:47:13

标签: objective-c xcode core-plot

所以我试图改变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;    

0 个答案:

没有答案