[Thread Prev][Thread Next][Index]

Re: [ferret_users] How can I plot over using PPL



Thanks all,
It helped a lot!
Exactly what I want to do. I didn't know this new command.
Cheers,
Domingos.

On Wed, Jul 2, 2008 at 6:06 PM, <jaison@xxxxxxxxxxxxxx> wrote:
Hi,
    In case you are trying to make a plot with two different Y-axes
(left and right) and a common X-axis, use the method of two-viewports
shown below. Note that you can use /AXES qualifier instead of "ppl
axset", with new versions of Ferret.


   define axis/x=0:30:1 xax
   let var1 = SIN(x[gx=xax]/5)
   let var2 = COS(x[gx=xax]/5)+ 10

   define view/xlim=0:1/ylim=0:1 v1
   define view/xlim=0:1/ylim=0:1 v2

   set view v1 ; ppl axlabp -1,-1
      plot/nolab/axes=1,1,1,0 var1

   set view v2 ; ppl axlabp 0,1
      plot/color=2/axes=0,0,0,1/nolab var2

Jaison


> Hi Domingos,
>
>          you need to use a /OVER qualifier for the second plot command,
> (in addition to the ppl plot/over). However, here you don't have to use
> the /SET qualifier and AXSET with the second plot command, since it is
> an OVERLAY. See this mail for more details :
>
> http://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2007/msg00564.html
>
> Jaison
>
>
>> Hi,
>>
>> I 'd like to make a plot with 2 curves using ppl ?
>>
>> What Im trying to do is:
>>
>>  plot/nolab/set var1
>>  ppl axset 0,1,1,0
>>  ppl axlabp -1,-1
>>  ppl plot
>>
>>  plot/nolab/set var2
>> ppl axset 0,0,0,1
>> ppl plot/over
>>
>> But the second curve erazes the first plot.
>>
>> Cheers,
>> Domingos.
>>
>




--
---------------------------------------------------------------
Dr. Domingos Urbano
Grupo de Modelagem Acoplada Oceano-Atmosfera - GMA
Centro de Previsão de Tempo e Estudos Climáticos - CPTEC
Instituto Nacional de Pesquisas Espaciais - INPE

Rodovia Presidente Dutra, km 40
12630-000 - Cachoeira Paulista - SP - Brasil
tel: 55(12)3186.8552 fax: 55(12)3101.2835
www.cptec.inpe.br www.inpe.br/ingles/
------------------------------------------------------
[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement