divyavamsee / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[CPTGraph insertPlot:atIndex:] does not change layer order #413

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a graph - CPTXYGraph *myGraph
2. Create 2 plots - CPTScatterPlot *plot1, CPTBarPlot *plot2
3. Call [myGraph addPlot:plot1]
4. Call [myGraph insertPlot:plot2 atIndex:0]

What is the expected output? What do you see instead?

Expected: The scatter plot (plot1) is drawn above the bar plot (plot2).
Actual: The bar plot (plot2) is drawn above the scatter plot (plot1).

What version of the product are you using? On what operating system?

Bleeding-edge version, all targets

Please provide any additional information below.

Note that this isn't that the library works in the reverse direction to my 
expectations, insertPlot:atIndex: simply calls addPlot: on the corresponding 
plot group, the order of the layers is simply the order that the plots are 
added.

I have fixed this behaviour in my clone:

http://code.google.com/r/elliot-core-plot-amends/source/detail?r=4a544e49ba6da41
c67c218e762a6880975610357

Original issue reported on code.google.com by elliot@emdentec.com on 28 Mar 2012 at 2:50

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 29 Mar 2012 at 12:40

GoogleCodeExporter commented 9 years ago
This issue was closed by revision d2b69b2e0e84.

Original comment by eskr...@mac.com on 31 Mar 2012 at 1:26