I've already tried YGraphToImage but the returned values were not what I was expecting.That's what should work... Or are you using axis transformations? In this case the values displayed along the axis ("axis units") may be different from the transformed values used for plotting ("graph units"). You must have the axis transformation convert your value to graph units: