write python script to plot measurement data