[Thread Prev][Thread Next][Index]

Re: plot annotations (a wish...)

Hi Helge,
I don't quite see what you are doing with the PLOT/VS command.
It looks like you issue the command with many arguments, the first,
depth, having many values, and all the VEL arguments having just
one value?  Maybe I am just misunderstanding what you've done.

But in any case, are the labels with the messy [d=  ]  text on the
vertical and horizontal axes?  If so, you can have your plot command
replace those labels with the SET_UP qualifier and reset the x and y
axis labels.  (shortening your example command - you would just add
/SET to the qualifiers you are using)

PLOT/VS/LINE/SYMBOL/SET  depth,vel[d=] ...
PPL XLAB "Depth"
PPL YLAB "Speed at 12H"

And if you like, you could get the title of the variable automatically
and use it for the axis labels:

PLOT/VS/LINE/SYMBOL/SET  depth,vel[d=] ...
PPL XLAB `depth,RETURN=title`
PPL YLAB `vel,RETURN=title`

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