Re: color labeled sub-region

From: Debasish PaiMazumder <debasish_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 19 2010 - 17:57:49 MDT

Dear Mary,

Thank you so much for your help. This is exactly what I was looking for.

Debasish

On 10-03-19, at 18:17, Mary Haley wrote:

> Hi Debasish,
>
> It sounds like what you want is similar to a labelbar, so you
> should be able to use gsn_create_labelbar
> to create the labelbar, and gsn_add_annotation to attach it to the
> plot.
>
> See example 2 at:
>
> http://www.ncl.ucar.edu/Applications/annotate.shtml
>
> The key to getting the boxes to not touch is by setting:
> lbres@lbBoxMajorExtentF = 0.75 ; puts space between
> color boxes
> Let me know if this isn't what you're looking for.
>
> --Mary
>
> On Mar 19, 2010, at 12:46 PM, Debasish PaiMazumder wrote:
>
>> Hello,
>>
>> I have 20 sub-regions in my domain of interest. I plotted the sub-
>> regions manually filled with different color using
>> "res@gsFillColor". Now I would like to add different colored box
>> as label with name of the sub-regions on the side of the main plot
>> instead of label bar. Is there any example which will help me to
>> do that.
>>
>> Thanks
>>
>> Debasish
>>
>> Debasish PaiMazumder, PhD
>> Postdoctoral Researcher
>> Analysis and Simulation of Regional-Scale Climate
>> Department of Earth and Atmospheric Sciences
>> University of Québec at Montréal (UQÀM)
>> 550, Sherbrooke west, 19th floor, west tower,
>> Montréal, QC, Canada H3A 1B9
>> Tel: (514) 282-6464-343
>> (514) 937-0042 (R)
>> email: debasish@sca.uqam.ca
>>
>>
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

Debasish PaiMazumder, PhD
Postdoctoral Researcher
Analysis and Simulation of Regional-Scale Climate
Department of Earth and Atmospheric Sciences
University of Québec at Montréal (UQÀM)
550, Sherbrooke west, 19th floor, west tower,
Montréal, QC, Canada H3A 1B9
Tel: (514) 282-6464-343
      (514) 937-0042 (R)
email: debasish@sca.uqam.ca
Received on Fri Mar 19 18:00:18 2010

This archive was generated by hypermail 2.1.8 : Sat Mar 27 2010 - 07:18:15 MDT