[ncl-talk] Legend in panel plot

jagan TNAU jagan at tnau.ac.in
Sun Aug 21 03:21:14 MDT 2016


Hello Mary,

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

On Fri, Aug 19, 2016 at 10:06 PM, Mary Haley <haley at ucar.edu> wrote:

>
> Hi,
>
> The issue is that by default, the labels on the labelbar are drawn in
> "InteriorEdges" mode, and you want to use "BoxCenters" mode.
>
> Please see the second frame in example lb_14.ncl at:
>
> http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex14
>
> I think all you need is:
>
>   res at lbLabelAlignment = "BoxCenters"
>   res at lbLabelStrings      = (/"Arid","Semi-arid","
> Mediterranean","Semi-humid","Humid","Very Humid","Extremely Humid"/)
>
> You may also want to look at the "classification data" examples page:
>
> http://www.ncl.ucar.edu/Applications/classification.shtml
>
> and in particular, example "permafrost_1.ncl", which has an explicitly
> labeled labelbar.
>
> --Mary
>
>
> On Fri, Aug 19, 2016 at 9:36 AM, jagan TNAU <jagan at tnau.ac.in> wrote:
>
>> Dear NCL users,
>>
>> 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
>>
>> Arid   0-10
>> Semi-arid 11-20
>> Mediterranean 21-24
>> Semi-humid 25-28
>> Humid 29-35
>> Very Humid 36-55
>> Extremely Humid > 56
>>
>> Through cnLevels resource and "ExplicitLevels" I was able to set levels
>> like res at cnLevels = (/0.,10.,20.,24.,28.,35.,55./). 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.
>>
>> Is it possible to create plots with legend with classification name as
>> above. Please find attached the script and plot I have created.
>>
>> --
>> With regards
>>
>> Dr.R.Jagannathan
>> Professor & Former Dean
>> Tamil Nadu Agricultural University
>> Coimbatore - 641 003 India
>>
>> PHONE:  Mob: +91 94438 89891
>>
>> DO NOT PRINT THIS E-MAIL UNLESS NECESSARY. THE ENVIRONMENT CONCERNS US
>> ALL.
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>


-- 
With regards

Dr.R.Jagannathan
Professor & Former Dean
Tamil Nadu Agricultural University
Coimbatore - 641 003 India

PHONE:  Mob: +91 94438 89891

DO NOT PRINT THIS E-MAIL UNLESS NECESSARY. THE ENVIRONMENT CONCERNS US ALL.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160821/3ebd4a98/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: panel.png
Type: image/png
Size: 100366 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160821/3ebd4a98/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ts-ai-new.ncl
Type: application/octet-stream
Size: 12407 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160821/3ebd4a98/attachment.obj 


More information about the ncl-talk mailing list