On Fri, 24 Apr 2009, Michael Notaro wrote:
> Agnes,
>
> tmYLLabels is a list of strings and tmYLValues is a list
> of float numerical values.
> For example,
> res_at_tmYLValues=(/100.,200./)
> res_at_tmYLLabels=(/"100","200"/)
Also, just in case it isn't clear, you need to set:
res_at_tmYLMode = "Explicit"
The tmYLValues should be numerical values where you want tickmarks
to appear, and they must be in the same data space as your Y axis.
A small addition to Mike's two lines: this a trick I use if the labels
and values are the same:
res_at_tmYLValues = (/100,200/)
res_at_tmYLLabels = "" + res_at_tmYLalues
(Note that the values don't have to be floating point if they
can be represented by integers.) The syntax:
"" + (/100,200/)
effectively converts the (/100,200/) to (/"100","200"/).
--Mary
> Check out example 5 for how to reverse axes:
> http://www.ncl.ucar.edu/Applications/tickmarks.shtml
>
> Mike
>
> On Apr 24, 2009, at 2:49 PM, Agnes Lim Huei Ni wrote:
>
>> Hi
>>
>> I want to label my y axis as 1000,975,950,925,800,850;
>>
>> I know that i need to use the following resource functions
>> res_at_tmYLLabels
>> res_at_tmYLValues
>> But I cant really figure out how even with the axis command.
>> Am I right to set
>> res_at_tmYLLabels = (/1000,975,950,925,800,850/) but
>> I have no idea how to set res_at_tmYLValues
>>
>> Agnes
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Apr 24 2009 - 14:10:58 MDT
This archive was generated by hypermail 2.2.0 : Fri Apr 24 2009 - 14:12:40 MDT