function p = linearGraph(x, gradient)

newy = gradient*x + 148.7677;

if (newy< 0)
  p = 0;
elseif (newy > 255)
  p = 255;
else
  p = newy;
end

