rm -f $FILE ; ../hist/normalDist | \
 gawk '{if (NR%2==1) {if(last<1) {print $1} else {print 5+$1}} else { last =$1 } }' | \
 head -50000 | \
 ./main mode hist png $FILE quit n 100 l -5 u 10 title 'Two Gaussians' ; display $FILE & 
 rm -f $FILE ; ../hist/normalDist | \
 gawk '{if (NR%2==1) {if(last<1) {print "sig",$1} else {print "bg",5+$1}} else { last =$1 } }' | \
 head -50000 | \
 ./main mode hist png $FILE quit n 100 l -5 u 10 title 'Two Gaussians - overlaid' multi ; display $FILE & 
 rm -f $FILE ; echo a 0 big 1 cat 2 did 3 eat 4 four 5 goats 6 hovering 7 in 8 just 9 killed 10 lice 11 | \
 hist multi n 24 l 0 u 12 quit png $FILE title 'Legend example' ly 0 uy 3 ; display $FILE & 
 rm -f $FILE ; ../hist/normalDist | \
 gawk '{if (NR%2==1) {if(last<1) {print $1} else {print 5+$1}} else { last =$1 } }' | \
 head -50000 | \
 ./main mode hist2D png $FILE quit n 100 l -5 u 10 overwrite title 'Overwrite example' ; display $FILE & 
 rm -f $FILE ; ../hist/normalDist | \
 gawk '{if (NR%2==1) {if(last<1) {print $1} else {print 5+$1}} else { last =$1 } }' | \
 head -50000 | \
 ./main mode hist2D png $FILE quit n 100 l -5 u 10 colourscale rainbow title 'Rainbow palette example' ; display $FILE & 
 rm -f $FILE ; ../hist/normalDist | \
 gawk '{if (NR%2==1) {if(last<1) {print $1} else {print 5+$1}} else { last =$1 } }' | \
 head -50000 | \
 ./main mode hist2D png $FILE quit n 100 l -5 u 10 allanach fillvoid colourscale title 'Allanach palette example' ; display $FILE & 
 rm -f $FILE ; ../hist/normalDist | \
 gawk '{if (NR%2==1) {if(last<1) {print $1} else {print 5+$1}} else { last =$1 } }' | \
 head -50000 | \
 ./main mode hist2D png $FILE quit n 100 l -5 u 10 allanach nofillvoid colourscale title "'nofillvoid' example" ; display $FILE & 
 rm -f $FILE ; ../hist/normalDist | \
 gawk '{if (NR%2==1) {if(last<1) {print $1} else {print 5+$1}} else { last =$1 } }' | \
 head -50000 | \
 ./main mode hist2D png $FILE quit n 100 l -5 u 10 greyscale colourscale title 'greyscale palette example' ; display $FILE & 
 rm -f $FILE ; ../hist/normalDist | \
 gawk '{if (NR%2==1) {if(last<1) {print $1} else {print 5+$1}} else { last =$1 } }' | \
 head -150000 | \
 ./main mode hist2D png $FILE quit n 100 l -5 u 10 colourscale userpal 0.1 1 1 1 userpal 0.15 0 0 1 userpal 0.2 0 1 0 userpal 0.25 0 0 1 userpal 0.3 1 1 0 title 'userpalette example' ; display $FILE & 
 rm -f $FILE ; ../hist/normalDist | \
 gawk '{if (NR%2==1) {if(last<1) {print $1} else {print 5+$1}} else { last =$1 } }' | \
 head -150000 | \
 ./main mode hist2D png $FILE quit n 100 l -5 u 10 colourscale noautoscalezcolours userpal 0 1 1 0 userpal 100 1 0 0 lz 0 uz 100 title 'Absolute z colour scale example' ; display $FILE & 
 rm -f $FILE ; ../hist/normalDist | \
 gawk 'BEGIN{for(i=0;i<1000;++i){print i,i}}' | \
 ./main mode hist2DWeighted nx 10 ny 1 rainbow l 0 u 1000 png $FILE quit title 'weighted 2D histogram example' ; display $FILE & 
 rm -f $FILE ; echo 0.5 0.5 1 | \
 ./main mode hist2DWeighted xname 'x axis' yname 'y axis' png $FILE quit title 'Axis labels example' l 0 u 1 ; display $FILE & 
 rm -f $FILE ; echo 0.5 0.5 1 | \
 ./main mode hist2DWeighted xname 'x axis' yname 'y axis' png $FILE quit title 'y-axis label running down, top jusitified' rightjustify ynamedirection DOWN l 0 u 1 y; display $FILE & 
 rm -f $FILE ; ../hist/normalDist | \
 gawk '{if (NR%2==1) {if(last<1) {print $1} else {print 5+$1}} else { last =$1 } }' | \
 head -50000 | \
 ./main mode hist2D png $FILE quit n 100 l -5 u 10 rainbow colourscale logz title 'LogZ rainbow palette example' ; display $FILE & 
 rm -f $FILE ; gawk 'BEGIN{for (i=0;i<100000;++i){x=rand()*2-1; print x,x*x}}' | \
 ./main mode histWeighted title Parabola png $FILE quit ; display $FILE & 
 rm -f $FILE ; ../hist/normalDist 0 1 | \
 head -30000 | \
 gawk '{if (rand()<0.3333333) {print "s" } else {print "b"} ; print}' | \
 hist multi ratio s b ly 0 uy 1.5 title 'Ratio of two Gaussian histograms' xname x yname 'bin-by-bin ratio' n 100 quit png $FILE ; display $FILE &