[Thread Prev][Thread Next][Index]

Re: [ferret_users] having trouble with ppl plot



Hi,

Ah, I didn't see the full problem before.  GO LEGEND needs to know the characteristics of the line numbers it's using, so in the sequence that I suggested, the "go legend 2" does not have a line 2 defined, so it cannot draw that.

Try this script , where we draw all the lines together and make the key, then go back and draw the thicker lines.

plot/set/thick=1/nolab/l=1/x=140:190 airt[y=0],airt[y=-50],airt[y=-40],airt[y=-30],\
 airt[y=-20],airt[y=-10], airt[y=10],airt[y=20],airt[y=30],airt[y=40],airt[y=50], airt[y=-50:50@ave]
    go legend 1 "Equator" lr
    go legend 2 "Lat -50" lr
    go legend 3 "Lat -40" lr
    go legend 4 "Lat -30" lr
    go legend 5 "Lat -20" lr
    go legend 6 "Lat -10" lr
    go legend 7 "Lat  10" lr
    go legend 8 "Lat  20" lr
    go legend 9 "Lat  30" lr
    go legend 10 "Lat  40" lr
    go legend 11 "Lat  50" lr
    go legend 12 "Average" lr
ppl plot

! Overlay thick lines for the first and last the curves.  Use PLOT/O

plot/set/thick=3/color=black/nolab/l=1/x=140:190 airt[y=0]
   go legend 1 "Equator" lr
ppl plot/over

plot/set/thick=3/over/line=12/nolab/l=1/x=140:190 airt[y=-50:50@ave]
 go legend 12 "Average" lr
ppl plot/over



On 6/13/2017 10:05 PM, Arijeet Dutta wrote:
HI
I tried as you said

        plot/thick=3/set/nolab/vlim=-30:60:5 adcp_clim[z=40:100@ave]
        go legend 1 "ADCP" ul
        go legend 2 "ORAS4" ul
        go legend 3 "ORAP5" ul
        go legend 4 "GODAOP" ul
        go legend 5 "GODASP1" ul
        go legend 6 "SODA2" ul
        go legend 7 "SODA3" ul
        go legend 8 "GFDL" ul
        go legend 9 "K7" ul
        go legend 10 "DASK" ul
        go legend 11 "ENSEMBLE" ul
        ppl plot

        plot/thick=1/over/nolab/vlim=-30:60:5 oras4_clim[z=40:100@ave]
        plot/thick=1/over/nolab/vlim=-30:60:5 orap5_clim[z=40:100@ave]
        plot/thick=1/over/nolab/vlim=-30:60:5 godasop_clim[z=40:100@ave]
        plot/thick=1/over/nolab/vlim=-30:60:5 godasp1_clim[z=40:100@ave]
        plot/thick=1/over/nolab/vlim=-30:60:5 soda2_clim[z=40:100@ave]
        plot/thick=1/over/nolab/vlim=-30:60:5 soda3_clim[z=40:100@ave]
        plot/thick=1/over/nolab/vlim=-30:60:5 gfdl_clim[z=40:100@ave]
        plot/thick=1/over/nolab/vlim=-30:60:5 k7_clim[z=40:100@ave]
        plot/thick=1/over/nolab/vlim=-30:60:5 dask_clim[z=40:100@ave]
        plot/thick=3/over/nolab/vlim=-30:60:5 ensemble_clim[z=40:100@ave]

Still getting same problem with the legends, please see the attached figure

regards
Arijeet

On Tue, Jun 13, 2017 at 10:35 PM, Ansley C. Manke <ansley.b.manke@xxxxxxxx> wrote:
Hi

PPL PLOT  always comes after a PLOT/SET_UP command.  So you would do it this way,

plot/set var1
go legend ...
go legend ...
go legend ...
ppl plot

plot/nolab/over var2
plot/nolab/over var3
plot/nolab/over var4




On 6/13/2017 8:51 AM, Arijeet Dutta wrote:
Hi all
I am trying to plot depth averaged climatology (which I have already calculated, not shown here)  with the following


    plot/thick=3/nolab/over oras4_clim[z=40:100@ave]
    plot/nolab/over orap5_clim[z=40:100@ave]
    plot/nolab/over godasop_clim[z=40:100@ave]
    plot/nolab/over godasp1_clim[z=40:100@ave]
    plot/nolab/over soda2_clim[z=40:100@ave]
    plot/nolab/over soda3_clim[z=40:100@ave]
    plot/nolab/over gfdl_clim[z=40:100@ave]
    plot/nolab/over k7_clim[z=40:100@ave]
    plot/nolab/over dask_clim[z=40:100@ave]
    plot/thick=3/nolab/over ensemble_clim[z=40:100@ave]


    go legend 1 "ORAS4" lr
    go legend 2 "ORAP5" lr
    go legend 3 "GODAOP" lr
    go legend 4 "GODASP1" lr
    go legend 5 "SODA2" lr
    go legend 6 "SODA3" lr
    go legend 7 "GFDL" lr
    go legend 8 "K7" lr
    go legend 9 "DASK" lr
    go legend 10 "ENSEMBLE" lr
    ppl plot

I want to make ORAS4 and ENSEMBLE thicker
and what I am getting is the attached figure, which is the plot for only the ensemble
Please let me know the mistake

Greetings
Arijeet




[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement