changed yscale to a double

as an int, this has issues if the number of a y point is larger than the number of pixels available to display (ends up forcing scale to 0 and thus all points end up at 0)