[Thread Prev][Thread Next][Index]

[ferret_users] multiple legend



Dear community,

I was trying to plot multiple line for seasonal variation from 19 models from different data sets.
But the problem is I cannot put the legend using legend.jnl. I was trying to use two option based on FAQ and resource from internet:

...
!MAIN:CALCULATE SEASONAL VARIATION
repeat/name=mm/range=1:19 (\
let modelid=model[i=`mm`];\
let/title="`modelid`" a`mm`=thetao_sst[d=`mm`,y=5s:10s@ave,x=50e:80e@ave, z=1, gt=month_reg@mod];\
)

!MAIN:PLOTTING (1)
plot/thick=1/vlim=25:31:0.2 a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19;\
....

The problem from script above is the legend placed at below the figure and the name of each line is not the model name (modelid) but variable `a1,a2,a3..` instead. I want to put the legend in upper right of figure.
...
!MAIN: PLOTTING (2)
plot/thick= 1/vlim=25:31:0.2 /color=19 a19
repeat/name=mn/range=1:18 (\
plot/over/thick=1/vlim=25:31:0.2/symbol=`mn`/line=`mn` a`mn`;\
go legend `mn` "`a`mn`,return=title`" ur;\
ppl plot;\
)
...

The problem is that:
**ERROR: variable unknown or not in data set: A
go legend 1 "`a`mn`,return=title`" ur
Command file, command group, or REPEAT execution aborted

So my purpose is to put the legend in upper right part and has a model name on it.
Because I am new to ferret, so any other help, lead, and suggestion is much appreciate.
Thank you very much.

NOAA/PMEL TMAP
  FERRET v6.64  
  Linux(gfortran) 2.6.9-89.0.20.ELsmp - 09/16/10
  6-Aug-19 10:50


Saat M.
KIOST




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

Privacy Policy | Disclaimer | Accessibility Statement