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

sublayerIndexForAxis:layerType: returns 0 for all axes #412

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Iterate through the axes of a graph and call 
[someGraph.plotAreaFrame.plotArea sublayerIndexForAxis:someAxis 
layerType:CPTGraphLayerTypeAxisLabels]
2. Log the output

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

Different axes should show different indexes, they in-fact all show zero

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

Release 1.0, all platforms

Please provide any additional information below.

I can see that the cause of the problem is that the loop iterates 
self.graph.axisSet.axes when it should be iterating self.axisSet.axes. I'm not 
sure why graph is nil here, but it's a property of the superclass 
CPTAnnotationHostLayer. self.axisSet contains the axes.

Original issue reported on code.google.com by elliot@emdentec.com on 25 Mar 2012 at 12:43

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 25 Mar 2012 at 1:23

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

Original comment by eskr...@mac.com on 25 Mar 2012 at 2:42

GoogleCodeExporter commented 9 years ago
Nice turnaround :)

Original comment by elliot@emdentec.com on 25 Mar 2012 at 9:50