问题
I'm using core plot scatter graph,but i'm not able to maintain size of the. For some values the graph works fine ,but for some values the size of the graph changes.
Can i fix it using xRange
,if yes, how?
please refer these images
1.
2
Why this is happening ?
回答1:
plotSpace.xRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(0) length:CPTDecimalFromFloat([[mXaxisArray valueForKeyPath:@"@max.floatValue"]floatValue])];
Added xRange
to fix this issue
来源:https://stackoverflow.com/questions/23846916/how-to-fix-scatter-graph-size-fixed-in-core-plot