<div dir="ltr">Dear All,<div><br></div><div>I would like to compare histogram for two seasons; winter and summer. I use the first field for summer and put it with filled red color. But I could not change the color in the second field, on crosshatch pattern to other color, let say blue.</div><div><br></div><div>If someone can help me?</div><div><br></div><div>Thank you for your time.</div><div><br></div><div>Kindest regards,</div><div>-r/K-</div><div><br></div><div><br></div><div><div>begin</div><div>;************************************************</div><div>; Generate some random data.</div><div>;************************************************</div><div>  x = new(1000,integer)</div><div>  y = new(1000,integer)</div><div>  do i=0,dimsizes(x)-1</div><div>    x(i) = rand()</div><div>    y(i) = rand()</div><div>  end do</div><div>  x = x/320</div><div>  y = y/320</div><div><br></div><div>;************************************************</div><div>; Set up a variable to hold both x and y.</div><div>;************************************************</div><div>  z = new((/2,dimsizes(x)/),integer)</div><div>  z(0,:) = x</div><div>  z(1,:) = y</div><div>;************************************************</div><div>; create plot</div><div>;************************************************</div><div>  wks = gsn_open_wks(&quot;png&quot;,&quot;histo&quot;)              ; send graphics to PNG file</div><div>  gsn_define_colormap(wks,&quot;temp1&quot;)               ; choose colormap</div><div><br></div><div>  res                            = True          ; plot mods desired</div><div>  res@gsnHistogramCompare        = True</div><div>  res@gsnHistogramBinIntervals = (/25,50,75/)</div><div>;  res@gsFillColors = (/(/&quot;blue&quot;,&quot;red&quot;/),(/&quot;blue&quot;,&quot;red&quot;/)/)</div><div>;  res@gsFillColor=(/&quot;blue&quot;,&quot;blue&quot;,&quot;red&quot;,&quot;red&quot;/)</div><div>  res@gsnHistogramBarColors = (/(/&quot;red&quot;,&quot;blue&quot;/),(/&quot;red&quot;,&quot;blue&quot;/)/)</div><div>;  res@gsnHistogramBarColors=(/&quot;blue&quot;,&quot;blue&quot;,&quot;red&quot;,&quot;red&quot;/)</div><div>  plot=gsn_histogram(wks,z,res)                  ; create histogram</div><div>end</div></div><div><img src="cid:ii_154b5ccc8eabc337" alt="Inline image 1" width="481" height="481"></div></div>