How do I get reference to a plot space? In case there is only one plot space, we can use the following code to create and get reference to the default plot space:
CPTXYPlotSpace *plotSpace = (CPTXYPlotSpace *) graph.defaultPlotSpace
So we can add plot to this plot space afterwards. The trouble comes when there is more than one plot space in the graph, and we try to add plot to a non-default plot space from another method (that is, the relevant plot space was created in another method). There should be something about array of plot spaces, but I can't get it. Thanks