<div dir="ltr">Dear Guilherme,<div><br></div><div>Thank you for the suggestion. I tried to activate gsnXYBarChart toTrue as well, but gsnXYBarChartColors2 or gsnXYBarChartColors are not valid resources for this. I still could not change the color bar for the second field.</div><div><br></div><div>Kindest regards,</div><div>-r/K-</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 16, 2016 at 2:08 AM, Guilherme Martins <span dir="ltr"><<a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm note sure but try: <span style="margin:0px;padding:0px;font-size:14.6667px;line-height:17.3333px;font-family:verdana,arial,sans-serif;color:rgb(0,0,0)">gsnXYBarChartColors2 or </span><span style="margin:0px;padding:0px;font-size:14.6667px;line-height:17.3333px;font-family:verdana,arial,sans-serif;color:rgb(0,0,0)">gsnXYBarChartColors.</span><div><strong style="margin:0px;padding:0px;font-size:14.6667px;line-height:17.3333px;font-family:verdana,arial,sans-serif;color:rgb(0,0,0)"><br></strong></div><div><span style="margin:0px;padding:0px;font-size:14.6667px;line-height:17.3333px;font-family:verdana,arial,sans-serif;color:rgb(0,0,0)">Guilherme.</span></div></div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">Em dom, 15 de mai de 2016 às 16:11, rK Aditya <<a href="mailto:aditya.rk@gmail.com" target="_blank">aditya.rk@gmail.com</a>> escreveu:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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("png","histo") ; send graphics to PNG file</div><div> gsn_define_colormap(wks,"temp1") ; 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 = (/(/"blue","red"/),(/"blue","red"/)/)</div><div>; res@gsFillColor=(/"blue","blue","red","red"/)</div><div> res@gsnHistogramBarColors = (/(/"red","blue"/),(/"red","blue"/)/)</div><div>; res@gsnHistogramBarColors=(/"blue","blue","red","red"/)</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></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div dir="ltr"><div><font size="2"><div>------------------------------------------------------------------------------------------</div><div>Dr. Guilherme Martins</div><div>Instituto Nacional de Pesquisas Espaciais (INPE)<br></div></font></div><div><font size="2">Centro de Previsão de Tempo e Estudos Climáticos (CPTEC)<br></font>Grupo de Desenvolvimento em Assimilação de Dados (GDAD)<font size="2"><br></font></div><div>Telefone (INPE/CP): +55 12 3186-8551 || Celular (TIM): +55 12 98152-8580<br>E-mail: <a href="mailto:guilherme.martins@inpe.br" target="_blank">guilherme.martins@inpe.br</a> || <a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a><br>Skype: guilherme.martins.<br>Homepage: <a href="https://sites.google.com/site/jgmsantos" target="_blank">https://sites.google.com/site/jgmsantos</a><br>Currículo Lattes: <a href="http://lattes.cnpq.br/5997657584785803" target="_blank">http://lattes.cnpq.br/5997657584785803</a><span><br></span>------------------------------------------------------------------------------------------</div></div>
</font></span></blockquote></div><br></div>