[Thread Prev][Thread Next][Index]

Re: convert Variable into Symbol



Hai Boyin Huang,
                   For getting numeric labels you have to specify either
the font (for example @SR , @CR  etc.) or you have to insert one '~'
before the label as shown below.

Example
-------

fill/i=1:10/j=1:10 i*j
let xx = 100                      ! it is variable only
label/nouser 1 1 0 0 0.12 ~`xx`   ! done ?
label/nouser 2 2 0 0 0.12 @SR`xx` ! ok ?

If you want to do the labelling within a repeat loop, refer this mail in
the archive :

 http://ferret.pmel.noaa.gov/Ferret/Mail_Archives/fu_2003/msg00884.html


Hope this helps....

With Regards 

Jaison Kurian






On Mon, 16 Feb 2004, Boyin Huang wrote:

> Dear Ferreters:
> 
> How to convert a variable into a symbol?
> 
> Assuming "J" is an integer variable from 1,2, ..., 9,
> 10,
> 
> I tried to convert J into a symble and label it in a
> plot using
> 
> let sym sj = ($J)
> lab/nouser, 0, 0, 0, 0, sj
> 
> which does not plot anything
> -------------------------------------------------
> 
> if I modified it slightly
> lab/nouser, 0, 0, 0, 0, A($J)
> which does plot A1, A2, ..., A10, although I do not
> want symbol A to be there.
> 
> When I use 
> lab/nouser, 0, 0, 0, 0, A$J
> I got the same result.
> --------------------------------------------------
> 
> Any way to get the conversion?
> 
> =====
> Boyin Huang
> The Center for Research on the Changing Earth System (CRCES)
> 10211 Wincopin Circle, Suite 240
> Columbia, Maryland 21044
> Tel. 410-992-5300/19 (O), 301-770-5826(H)
> Fax. 410-992-5944, Email. byh@crces.org
> http://byh.crces.org
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html
> 



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement