[ncl-talk] Legend in panel plot

jagan TNAU jagan at tnau.ac.in
Sun Aug 21 19:45:07 MDT 2016


Thanks Mary,

I have already attempted that. The common label bar in panel plots is not
as I wanted to be. Please see the attachments.

On Mon, Aug 22, 2016 at 12:50 AM, Mary Haley <haley at ucar.edu> wrote:

> Hi,
>
> To create a common labelbar for the paneled plots, first you need to turn
> off the individual labelbar that gets generated for each plot:
>
> res at lbLabelBarOn = False
>
> Then, turn on the pnanel labelbar with:
>
>   resP at gsnPanelLabelBar    = True             ; add common colorbar
>
> --Mary
>
>
>
> On Sun, Aug 21, 2016 at 3:21 AM, jagan TNAU <jagan at tnau.ac.in> wrote:
>
>> 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","Mediterr
>>> anean","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.
>>
>
>


-- 
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/20160822/c069cdab/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: panel.png
Type: image/png
Size: 141626 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160822/c069cdab/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ts-ai-new.ncl
Type: application/octet-stream
Size: 12405 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160822/c069cdab/attachment.obj 


More information about the ncl-talk mailing list