# File mrplot/plots/xy.rb, line 21 def get_point_by_pos(pos, content) # Get a new point in plot space newpoint = @space.transform_to_plotspace(Point.new(pos,0)) # Get y coordinate via the content begin newpoint.y = content[newpoint.x] rescue newpoint.y = 0 end return newpoint end