Remove 'magic number' and loop of lengthLinY not a constant.

Ana and I fixed this a while ago, but it didn't get pushed.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>