<div dir="ltr"><div>Hi Dale,</div><div>As Barry noted, the question is not quite clear, what do you mean by "this does not work"? Did you try to play with those numbers in fspan* to adjust for the size and position of bars?</div><div>Also for the legend to be appropriate you need to play with legend size limits. <br></div><div><br></div><div>If it is still not clear, then sharing the data and a full (clean) script would help. <br></div><div><br></div><div>Cheers,</div><div>Rashed<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 17, 2020 at 11:52 AM dale zuri via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">dale zuri</strong> <span dir="auto"><<a href="mailto:dalezuri@gmail.com" target="_blank">dalezuri@gmail.com</a>></span><br>Date: Thu, Dec 17, 2020 at 12:42 AM<br>Subject: sub: bar chart help<br>To: Ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br></div><br><br><div dir="ltr">Hi NCL user,<div><br><div>I've been trying to modify this code to <a href="https://www.ncl.ucar.edu/Applications/Scripts/unique_5.ncl" target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/unique_5.ncl</a> get 6 bars. But it didn't look good/work. </div><div><br></div><div>





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(0,0,0)"><span style="font-family:Menlo">    </span>sres@</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">gsnXYBarChartColors</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(0,0,0)"> = </span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(206,121,36)">(/</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">"magenta"</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(206,121,36)">/)</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">     </span>plot1 = </span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(213,59,211)">gsn_csm_xy</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">(wks,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(52,187,199)">fspan</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">(</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">.775</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">10.775</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">11</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">),dimchnge(:,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">0</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">),sres) <span style="font-family:Menlo">          </span></span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(83,48,225)">; draw each time series</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">     </span>sres@</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(52,189,38)">gsnXYBarChartColors</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> = </span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(206,121,36)">(/</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">"green"</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(206,121,36)">/)</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> <span style="font-family:Menlo">                                    </span></span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(83,48,225)">; seperately, not</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">     </span>plot2 = </span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(213,59,211)">gsn_csm_xy</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">(wks,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(52,187,199)">fspan</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">(</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">0.925</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">10.925</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">11</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">),dimchnge(:,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">1</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">),sres)<span style="font-family:Menlo">          </span></span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(83,48,225)">; advancing the frame</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">     </span>sres@</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(52,189,38)">gsnXYBarChartColors</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> = </span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(206,121,36)">(/</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">"maroon"</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(206,121,36)">/)</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">                                    </span></span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(83,48,225)">; seperately, not</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">     </span>plot3 = </span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(213,59,211)">gsn_csm_xy</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">(wks,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(52,187,199)">fspan</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">(</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">1.075</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">11.075</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">11</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">),dimchnge(:,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">2</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">),sres)<span style="font-family:Menlo">          </span></span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(83,48,225)">; advancing the frame</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">     </span>sres@</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(52,189,38)">gsnXYBarChartColors</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> = </span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(206,121,36)">(/</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">"orange"</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(206,121,36)">/)</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">                                    </span></span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(83,48,225)">; seperately, not</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">     </span>plot4 = </span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(213,59,211)">gsn_csm_xy</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">(wks,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(52,187,199)">fspan</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">(</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">1.225</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">11.225</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">11</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">),dimchnge(:,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">3</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">),sres)<span style="font-family:Menlo">          </span></span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(83,48,225)">; advancing the frame</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">     </span>sres@</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(52,189,38)">gsnXYBarChartColors</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> = </span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(206,121,36)">(/</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">"violet"</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(206,121,36)">/)</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">                                    </span></span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(83,48,225)">; seperately, not</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">     </span>plot5 = </span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(213,59,211)">gsn_csm_xy</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">(wks,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(52,187,199)">fspan</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">(</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">1.375</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">12.375</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">11</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">),dimchnge(:,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">4</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">),sres)<span style="font-family:Menlo">          </span></span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(83,48,225)">; advancing the frame</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">     </span>sres@</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(52,189,38)">gsnXYBarChartColors</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> = </span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(206,121,36)">(/</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">"skyblue"</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(206,121,36)">/)</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> <span style="font-family:Menlo">                                  </span></span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(83,48,225)">; seperately, not</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">     </span>plot6 = </span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(213,59,211)">gsn_csm_xy</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">(wks,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(52,187,199)">fspan</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">(</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">1.525</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">12.525</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">11</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">),dimchnge(:,</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;color:rgb(195,55,32)">5</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">),sres)<span style="font-family:Menlo"> </span></span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo"><br></span></span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">I would appreciate any help to fix this. </span></span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo"><br></span></span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">Thanks</span></span></p></div></div></div><div dir="ltr"><div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><span style="font-family:Menlo">Dale</span></span></p></div></div></div>
</div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>