now outputs as csv and plot as axis labels and units