Working, wrong number of lines

Working, plots correctly into fits file, but uses the wrong number of
lines.