def getLeftYRightYscaled( data_point, result )
case @mode
when 1 then
result[0] = @graph_top + @graph_height*(1 - data_point) + 1
result[1] = @graph_top + @graph_height - 1
when 2 then
result[0] = @graph_top + 1
result[1] = @graph_top + @graph_height*(1 - data_point) - 1
when 3 then
val = data_point-@minimum_value/@spread
if ( data_point >= @zero ) then
result[0] = @graph_top + @graph_height*(1 - (val-@zero)) + 1
result[1] = @graph_top + @graph_height*(1 - @zero) - 1
else
result[0] = @graph_top + @graph_height*(1 - (val-@zero)) + 1
result[1] = @graph_top + @graph_height*(1 - @zero) - 1
end
else
result[0] = 0.0
result[1] = 0.0
end
end