Re: A question on the tickmark

From: David Ian Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Wed, 31 Jan 2007 11:14:54 -0700

As a generalization of this concept that would make the code independent
of the actual tickmark labels values you could do the following after
calling:
plot = gsn_csm_contour(wks,arr,res)
-------
getvalues plot_at_xy
   "tmXBValues" : xb_values
   "tmXBLabels" : xb_labels
end getvalues

xb_labels(0) = ""
setvalues plot_at_xy
    "tmXBMode": "Explicit"
    "tmXBValues" : xb_values
    "tmXBLabels" : xb_labels
end setvalues
draw(plot)
;etc...

  -dave

On Jan 31, 2007, at 10:33 AM, Adam Phillips wrote:

> Hi Lin,
>
> The only way to modify the automatically created NCL zonal mean plot is
> to use setvalues after the plot has been created. Make sure you set
> gsnFrame and gsnDraw = False and then call draw/frame after the
> modifications are done...
>
> example:
> ....
> res_at_gsnZonalMean = True
> res_at_gsnDraw = False
> res2gsnFrame = False
> plot = gsn_csm_contour(wks,arr,res)
> setvalues plot_at_xy
> ; "trXMinF" : 0.0 ; not needed
> ; "trXMaxF" : 5.0
> "tmXBMode": "Explicit"
> "tmXBValues" : (/"0.","1.","2.","3.","4.","5."/)
> "tmXBLabels" : (/"","1.0","2.0","3.0","4.0","5.0"/)
> end setvalues
> draw(plot)
> frame(wks)
>
> Good luck,
> Adam
>
> LEO_ARIES wrote:
>> Hi, all
>>
>> I have attached a plot (A, a global wavelet power plot ) to
>> another
>> plot (B, a wavelet power contour),
>>
>> but find that the leftmost tickmark of A and the rightmost tickmark
>> of B are overlaid (see attached 1.eps) .
>>
>> I want to set the leftmost tickmark of A unseen , but don't know
>> how
>> to get it. Anyone can help me?
>> Thanks!
>>
>>
>>
>> Good Luck
>>
>>
>>
>>
>>
>> Lin
>>
>>
>>
>>
>>
>>
>> ----------------------------------------------------------------------
>> --
>> LEO_ARIES
>> 2007-01-28
>>
>>
>> ----------------------------------------------------------------------
>> --
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk_at_ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> --
> --------------------------------------------------------------
> Adam Phillips asphilli_at_ucar.edu
> National Center for Atmospheric Research tel: (303) 497-1726
> ESSL/CGD/CAS fax: (303) 497-1333
> P.O. Box 3000
> Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
> _______________________________________________
> 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 Wed Jan 31 2007 - 11:14:54 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 06 2007 - 15:01:34 MST