refactor XY plots into X and Y
better errors in gnuplot
lenient tests