Small modification to Dave Armstrong's DAintfun2 plot function