[Thread Prev][Thread Next][Index]

Re: plot annotations (a wish...)

Hi Helge,
I realized you probably did not use PLOT/VS, but just PLOT to
overlay a set of lines.  How about this: it makes the definitions messier
but you get the different lines labelled with titles that you set.  I used
[d=1]  dataset number, but you could also use the dataset names.

FILE/VAR=zz,u,v,wr dat1.dat
FILE/VAR=zz,u,v,wr dat2.dat
FILE/VAR=zz,u,v,wr dat3.dat

LET/TITLE="Depth" depth= zz[d=1]*-6
LET/TITLE="Speed at 12H" vel12=(u[d=1]*u[d=1]+u[d=1]*u[d=1])^0.5
LET/TITLE="Speed at 14H" vel14=(u[d=2]*u[d=2]+u[d=2]*u[d=2])^0.5
LET/TITLE="Speed at 16H" vel16=(u[d=3]*u[d=3]+u[d=3]*u[d=3])^0.5

PLOT/LINE/SYM DEPTH, vel12, vel14, vel16

And, we will consider whether the TITLE of a variable should take
precedence over the current way of making the labels.

Helge Avlesen wrote:

> Dear ferreters,
> I am trying to use PLOT to view several timeseries in the same graph,
> but are not happy with the annotations for the lines;
> is there some way to make my variable titles propagate into the line
> annotations instead of those messy
>     <variable name>[d=long ugly filename]?
> I read my data, define variables and titles like this
> FILE/VAR=zz,u,v,wr,s,t tp100600-VPROF-51.DATA
> LET/TITLE="Depth" depth= zz[i=1:($KB)]*-($D)
> LET/TITLE="Speed at 12H" vel=(u*u+v*v)^0.5
> ...
> Then plot the lines like
> PLOT/VS/LINE/SYMBOL/VLIMITS=($D):0:-100/TRANSPOSE depth,vel[d=tp102400-VPROF-51.DATA],\
> vel[d=tp103300-VPROF-51.DATA],\
> vel[d=tp104200-VPROF-51.DATA],\
> vel[d=tp105400-VPROF-51.DATA]
> So my wish is really that ferret as a default could pick up user
> defined titles for variables and use them in the annotations, and
> rather use the current method as a fallback solution if titles are
> undefined.
> I guess the only way I can achieve this now is to manually delete and
> replace labels, but this seems hard to automate - for me at least :)
> any comments?
> --
> Helge

Ansley Manke  Pacific Marine Environmental Laboratory  Seattle WA  (206)526-6246

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement