Re: Switch off Axes Labels

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon, 14 Nov 2005 10:05:57 -0700 (MST)

Saji is correct.

Consider: uNCEP(tNCEP)
            uERA(tERA)
then
            xTime = uNCEP&time
            nTime = dimsizes(xTime) ; or dimsizes( uNCEP&time)
            
            nERA = dimsizes(uERA&time)
            
            U = new ( (/2,nTime, typeof(uNCEP), getFillValue(uNCEP))
            U(0,:) = (/ uNCEP /)
            U(1,0:nERA-1) = (/ uERA /)
            
            res = True
            res_at_xyLineThicknesses = (/1.0,2.0/) ; make 2nd lines thicker
           ;res_at_xyLineThicknesses = 2.0 ; all lines the same
            res_at_xyLineColors = (/"blue","red"/) ; change line color
            res_at_xyMonoDashPattern = 0 ; solid for all
           ;res_at_xyDashPatterns = (/0 ,2 /) ; line patterns

            plot = gsn_csm_xy (wks,xTime, U, res)
           ;plot = gsn_xy (wks,xTime, U, res)

http://www.ncl.ucar.edu/Applications/gsn_xy.shtml
http://www.ncl.ucar.edu/Applications/xy.shtml

If you want a legend: see

http://www.ncl.ucar.edu/Applications/legend.shtml

eg: example 2

good luck

>
>In fact I am trying to plot seasonal mean values of zonal wind averaged
>over the Indian region from NCEP (x-axis: 1948-2003) and from ERA40
>(x-axis: 1958-2001). From the documentation, what I found the most
>appropriate was gsn_csm_x2y2.
>
>My intention is to plot these two curves on the longest axis (1948-2003).
>The plot comes out well, but I am not able to switch off the axes of the
>second curve (top and right axes), even when I use <<resera_at_tmXTLabelsOn
>= False>>.
>Am I doing it right?
>
>Prince
>
>
>
>On Fri, 11 Nov 2005, Saji Hameed wrote:
>
>> Hi Prince,
>>
>> It seems to me that you are using gsn_csm_x2y2 for the wrong purpose.
>> I suspect you want to plot multiple curves on the same plot, but the x-axis
is same for
>> both your curves. See
>>
>> http://www.ncl.ucar.edu/Applications/Scripts/xy_2.ncl
>>
>> on how to do this.
>>
>> saji
>>
>> Saji N. Hameed, Assistant Researcher,
>> IPRC-SOEST, 2525 Correa Road, Univ. of Hawaii,
>> Honolulu, HI 96822, U.S.A
>> http://iprc.soest.hawaii.edu/~saji
>> tel.: (808) 956 9534 , fax.: (808) 956 9425
>>
>> ----- Original Message -----
>> From: "Prince K. Xavier" <xavier_at_caos.iisc.ernet.in>
>> Date: Thursday, November 10, 2005 9:39 pm
>> Subject: Switch off Axes Labels
>>
>>>
>>> Hello all,
>>>
>>> I am plotting an XY plot using gsn_csm_x2y2. It labels both the
>>> bottom and
>>> top axes. How can I switch off the top axis as well as the right
>>> side axis
>>> labels (that basically comes from the second pair of my XY data).
>>>
>>> I set << res2_at_tmXTLabelsOn = False >>
>>> but somehow it does not seem to have any effect.
>>>
>>> Any suggestions are welcome
>>>
>>> Regards
>>> Prince
>>>
>>> --
>>> Prince K XAVIER
>>> Centre for Atmospheric and Oceanic Sciences
>>> Indian Institute of Science
>>> Bangalore - 560 012
>>> INDIA
>>> http://caos.iisc.ernet.in/hpg/students/prince.html
>>> __________________________________________________
>>> Phone No.
>>> +91 80 2293 2505 (Extn:201)
>>> +91 98808 19172 (Mobile)
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk_at_ucar.edu
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>
>
>--
>Prince K XAVIER
>Centre for Atmospheric and Oceanic Sciences
>Indian Institute of Science
>Bangalore - 560 012
>INDIA
>http://caos.iisc.ernet.in/hpg/students/prince.html
>__________________________________________________
>Phone No.
>+91 80 2293 2505 (Extn:201)
>+91 98808 19172 (Mobile)
>_______________________________________________
>ncl-talk mailing list
>ncl-talk_at_ucar.edu
>http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Nov 14 2005 - 10:05:57 MST

This archive was generated by hypermail 2.2.0 : Mon Nov 14 2005 - 15:26:10 MST