B=float(bins[i,j])/MAXITS if (B==1.0): mycolor=color.black if ((B<1.0) and (B>=0.2)): mycolor=color.red if ((B<0.2) and (B>=0.15)): mycolor=color.blue if ((B<0.15) and (B>=0.1)): mycolor=color.green if ((B<0.1) and (B>=0.05)): mycolor=color.yellow if (B<0.05): mycolor=color.white