plotSpace
and plotSpace2
are the same object (graph.defaultPlotSpace
). If you want two different y scales, create a new plot space and add it to the graph.
CPTXYPlotSpace *plotSpace2 = [[CPTXYPlotSpace alloc] init];
[graph addPlotSpace:plotSpace2];