Fixed floating point comparison problem, X axis starts from minimum value and ends at maximum value