added functionality for plotting different lengths of x and y arrays.
write plot-info to dat file that can be replotted by plotshit.py