awk scripts for plotting