added axis labels. put in own functions.
need GUI buttons as before.
switch coordinates and swap labels.
data write out.