<div dir="ltr">Thanks Mary.<div><br></div><div>The lbLabelAlignment and lbLabelStrings resources when used in the panel plot area it works.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 22, 2016 at 10:22 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</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"><div class="gmail_default" style="font-size:small">Sorry about that. For some reason gsn_panel is not recognizing the lbLabelAlignment setting.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You will need to fix this by setting the lbLabelAlignment and lbLabelStrings resources yourself when you call gsn_panel. You won't need to set them when you create the individual plots.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I've attached an example script that uses dummy data.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I've also file a bug report. This is timely, because we may overhaul the way we do labelbars for panel plots in the next release of NCL.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 21, 2016 at 7:45 PM, jagan TNAU <span dir="ltr"><<a href="mailto:jagan@tnau.ac.in" target="_blank">jagan@tnau.ac.in</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">Thanks Mary,<div><br></div><div>I have already attempted that. The common label bar in panel plots is not as I wanted to be. Please see the attachments.</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 22, 2016 at 12:50 AM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</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"><div class="gmail_default" style="font-size:small">Hi,<br><br></div><div class="gmail_default" style="font-size:small">To create a common labelbar for the paneled plots, first you need to turn off the individual labelbar that gets generated for each plot:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">res@lbLabelBarOn = False</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Then, turn on the pnanel labelbar with:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">
<p><span> resP@gsnPanelLabelBar = True ; add common colorbar</span></p><span><font color="#888888"><p><span>--Mary</span></p><p><span><br></span></p></font></span></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 21, 2016 at 3:21 AM, jagan TNAU <span dir="ltr"><<a href="mailto:jagan@tnau.ac.in" target="_blank">jagan@tnau.ac.in</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">Hello Mary,<div><br></div><div>Thanks for the input. I was able to create plot with explicit values with equivalent description using "Explicitlevels" and "Boxcentres" for single plots. However I am unable to create single lablelbar for the PANEL plots. Is there any additional resources I need to add for doing the same. Attached script produces label bar for all the plots as seen in the attached chart. I want a common label bar for all the panel plots</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 19, 2016 at 10:06 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</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"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Hi,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The issue is that by default, the labels on the labelbar are drawn in "InteriorEdges" mode, and you want to use "BoxCenters" mode.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please see the second frame in example lb_14.ncl at:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex14" target="_blank">http://www.ncl.ucar.edu/Applic<wbr>ations/labelbar.shtml#ex14</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">I think all you need is:</div><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default"> res@lbLabelAlignment = "BoxCenters"<br><span> res@lbLabelStrings = (/"</span><span style="font-size:12.8px">Arid","Semi-arid","Mediterr<wbr>anean","Semi-humid","Humid","V<wbr>ery Humid","Extremely Humid"/)</span></div></div><div class="gmail_default"><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">You may also want to look at the "classification data" examples page:</div><div style="font-size:12.8px"><br></div><div><span style="font-size:12.8px"><a href="http://www.ncl.ucar.edu/Applications/classification.shtml" target="_blank">http://www.ncl.ucar.edu/Applic<wbr>ations/classification.shtml</a></span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">and in particular, example "permafrost_1.ncl", which has an explicitly labeled labelbar. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">--Mary</span></div><div><span style="font-size:12.8px"><br></span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, Aug 19, 2016 at 9:36 AM, jagan TNAU <span dir="ltr"><<a href="mailto:jagan@tnau.ac.in" target="_blank">jagan@tnau.ac.in</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>Dear NCL users,</div><div><br></div><div>I am trying a panel plot of Aridity Index of a specific regions with its sub divisions. The original script was provided to me by Mary. There is no issue in generating panel plots. However, I want to display contour levels as there is a suggested classification for the Aridity Index as below </div><div><br></div><div>Arid <span style="white-space:pre-wrap">                </span>0-10</div><div>Semi-arid <span style="white-space:pre-wrap">        </span>11-20</div><div>Mediterranean <span style="white-space:pre-wrap">        </span>21-24</div><div>Semi-humid <span style="white-space:pre-wrap">        </span>25-28</div><div>Humid <span style="white-space:pre-wrap">                </span>29-35</div><div>Very Humid <span style="white-space:pre-wrap">        </span>36-55</div><div>Extremely Humid<span style="white-space:pre-wrap">        </span> > 56</div><div><br></div><div>Through cnLevels resource and "ExplicitLevels" I was able to set levels like res@cnLevels = (/0.,10.,20.,24.,28.,35.,55./)<wbr>. But I did not find any examples that can use the range as above and use the legend class like Arid, Semi Arid etc and not merely numbers. </div><div><br></div><div>Is it possible to create plots with legend with classification name as above. Please find attached the script and plot I have created. </div><span><font color="#888888"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div>With regards<br><br>Dr.R.Jagannathan <br>Professor & Former Dean<br>Tamil Nadu Agricultural University <br>Coimbatore - 641 003 India <br><br>PHONE: Mob: <a href="tel:%2B91%2094438%2089891" value="+919443889891" target="_blank">+91 94438 89891</a><br><br>DO NOT PRINT THIS E-MAIL UNLESS NECESSARY. THE ENVIRONMENT CONCERNS US ALL.</div></div></div>
</font></span></div>
<br></div></div>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div>With regards<br><br>Dr.R.Jagannathan <br>Professor & Former Dean<br>Tamil Nadu Agricultural University <br>Coimbatore - 641 003 India <br><br>PHONE: Mob: <a href="tel:%2B91%2094438%2089891" value="+919443889891" target="_blank">+91 94438 89891</a><br><br>DO NOT PRINT THIS E-MAIL UNLESS NECESSARY. THE ENVIRONMENT CONCERNS US ALL.</div></div></div>
</div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div>With regards<br><br>Dr.R.Jagannathan <br>Professor & Former Dean<br>Tamil Nadu Agricultural University <br>Coimbatore - 641 003 India <br><br>PHONE: Mob: <a href="tel:%2B91%2094438%2089891" value="+919443889891" target="_blank">+91 94438 89891</a><br><br>DO NOT PRINT THIS E-MAIL UNLESS NECESSARY. THE ENVIRONMENT CONCERNS US ALL.</div></div></div>
</div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>With regards<br><br>Dr.R.Jagannathan <br>Professor & Former Dean<br>Tamil Nadu Agricultural University <br>Coimbatore - 641 003 India <br><br>PHONE: Mob: +91 94438 89891<br><br>DO NOT PRINT THIS E-MAIL UNLESS NECESSARY. THE ENVIRONMENT CONCERNS US ALL.</div></div></div>
</div>