Re: how to reset tmYLValues

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Wed Apr 14 2010 - 16:27:37 MDT

Hi Mingxuan,
You can delete resources/attributes if necessary:
delete(res@tmYLValues)
delete(res@tmYLLabels)
That should fix your problem..
Adam

On 04/14/2010 04:24 PM, Mingxuan Chen wrote:
> Hello,
> I 'd like to draw a panel with two gsn_csm_xy plot. Each plot has
> different range of y values.
> In first plot I set
> res@tmYLMode="Explicit"
> res@tmYLValues=(/0,5,10,15/)
> res@tmYLLabels=(/"0","5","10","15"/)
> it is working.
>
> in second plot I set
> res@tmYLValues=(/20,25,30,35,40/) ; line 426
> res@tmYLLabels=(/"20","25","30","35","40"/)
> I have error message:
> fatal:Dimension size of attribute and right-hand side of assignment do
> not match
> fatal:Execute: Error occurred at or near line 426 in file ann_2.ncl
> if in second plot I set
> res@tmYLValues=(/20,25,30,35/)
> res@tmYLLabels=(/"20","25","30","35"/)
> it is working.
> How can I reset tmYLValues which dimension is different from previous
> setting?
> Thanks for your help
> Mingxuan
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
__________________________________________________
Adam Phillips 
asphilli@ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
Climate and Global Dynamics Division         fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Apr 14 16:27:45 2010

This archive was generated by hypermail 2.1.8 : Fri Apr 16 2010 - 16:21:29 MDT