#### Iterated printing of cubehelix.gp #### (why doesn't gnuplot provide multicolumn table plot?) x255=1.0*i x=x255/imax r0=f0red(x);g0=f0grn(x);b0=f0blu(x) r=fred(x); g=fgrn(x); b=fblu(x) gray_ideal=fxgry(x) gray_appar=fgry(x) defect=gray_appar-gray_ideal defred=r0-r; defgrn=g0-g; defblu=b0-b if(defectmaxdefect) maxdefect=defect;xatmax=x if(defredmaxdefred) maxdefred=defred;xatmax=x if(defgrnmaxdefgrn) maxdefgrn=defgrn;xatmax=x if(defblumaxdefblu) maxdefblu=defblu;xatmax=x if(abs(defect)>absdefect) absdefect=abs(defect);xatabs=x if (r0<0) nrlo=nrlo+1 if (g0<0) nglo=nglo+1 if (b0<0) nblo=nblo+1 if (r0>1) nrhi=nrhi+1 if (g0>1) nghi=nghi+1 if (b0>1) nbhi=nbhi+1 isfalling=0;graydrop=0. if (gray_appar<=gray_last) ndegrade=ndegrade+1;isfalling=1;\ graydrop=gray_appar-gray_beforefalling if (graydrop