slightly less ugly plotting
started with analysis code for new measurements