[Thread Prev][Thread Next][Index]

Re: [ferret_users] shakey: number format



Hi Emilie,
            The command syntax for ppl shakey is (see Appendix C Sec2.12)

SHAKEY do_key, orient, klab_siz, klab_inc, klab_dig, klab_len, kx_lo, 
          kx_hi, ky_lo, ky_hi 

Hence to control the number format on key labels, 
the fifth argument "klab_dig" should be -1 for  xx.x
                                        -2 for  xx.xx
                                        -3 for  xx.xxx
and so on.

Important point : PPL SHAKEY should be used between a fill or shade
command with /SET qualifier and "PPL FILL" or "PPL SHADE"

Please see the example below.

Hope this helps,

Jaison

!---------shakey example------------------------
   use levitus_climatology
   set reg/x=30:120/y=-30:30/k=1
   define view/xlim=0:0.9/ylim=0:1 v1 ;set view v1
   fill/lev=(12,30,1) temp

   pause 
   ! 1 decimal place : bigger font size  
   fill/lev=(12,30,1)/set temp
     ppl shakey 1,1,0.12,2,-1 ! other arguments set to default
   ppl fill

   pause
   ! 2 decimal place : bigger font size
   fill/lev=(12,30,1)/set temp
     ppl shakey 1,1,0.12,2,-2
   ppl fill

   pause
   ! 3 decimal place : bigger font size
   fill/lev=(12,30,1)/set temp
     ppl shakey 1,1,0.12,2,-3,
   ppl fill
!-------------------------------------------------------------------

On Mon, 18 Sep 2006, Emilie Vanvyve wrote:

> Hi Ferret users,
> 
> Just a quick question: how can I modify the automatic format of the  
> shakey labels?
> I'd like it to keep a constant number of digits for decimal numbers  
> and don't find how to do. I tried the two relevant arguments provided  
> with "pplus shakey", but it doesn't work.
> 
> Example: I'd like to have 0.50, -0.45, -0.40 ... 0.40, 0.45, 0.50  
> instead of -0.5, -0.45, -0.4 ... 0.4, 0.45, 0.5.
> 
> Thanks for any suggestion,
> 
> Emilie V.
> 
> 
> 

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement