0

我想像这样绘制图表。

当我设置大 yRange 时,IOS 模拟器和设备上的应用程序无法运行...

int xAxisMin = 0;
int xAxisMax = 30;
int yAxisMin = 0;
int yAxisMax = 200000;  

CPTXYPlotSpace *plotSpace = (CPTXYPlotSpace *)graph.defaultPlotSpace;
plotSpace.xRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromInt(xAxisMin) length:CPTDecimalFromInt(xAxisMax - xAxisMin)];
plotSpace.yRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromInt(yAxisMin) length:CPTDecimalFromInt(yAxisMax - yAxisMin)];

在此处输入图像描述

4

0 回答 0