[Thread Prev][Thread Next][Index]
Re: [ferret_users] How can I plot over using PPL
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.
>>
>
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Privacy Policy | Disclaimer | Accessibility Statement