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

CPTXYPlotSpace plotPoint:forPlotAreaViewPoint returning incorrect value for log axis #431

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Create CPTXYPlotSpace wiith linear y axis and logarithmic x axis 
(setXScaleType:CPTScaleLog)
2.  Use CPTPlotSpaceDelegate to receive tap point and convert to plot area view 
point with convertPoint:toLayer
3.  Call plotPoint:forPlotAreaViewPoint to obtain plot point

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

For logarithmic x axis ranging from 5.0 to 500.0, expected is returned x value 
of 5.0 at left edge of axis, 500.0 at right edge, and 50.0 in center.

Instead, returns 5.0 at left edge, 500.0 at right edge, and ~252.0 in center, 
as if a linear axis.

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

Using Core Plot release 1.0 on iOS 5.0 using Xcode 4.2

Please provide any additional information below.

Original posting about this issue with code example:
http://stackoverflow.com/questions/10406539/core-plot-how-to-convert-touch-point
-to-plot-point-in-a-plot-space-with-log-ax

Original issue reported on code.google.com by tp...@earthlink.net on 3 May 2012 at 3:40

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 4 May 2012 at 12:30

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

Original comment by eskr...@mac.com on 5 May 2012 at 3:58