[Thread Prev][Thread Next][Index]

Re: Multiple plot labeling



Hi Bob,
I think it may be just that the @c takes a 3-digit color code.  This
works (using made-up variables to plot)

plot/nolabel/xlim=90:-90:-20/ylim=210:230:2/i=1:15 220+i

label 60,215,-1,0,.20 @c007 @AC o AM2amip2
label 60,214,-1,0,.20 @c007 @AC x AM2amip2v2
label 60,213,-1,0,.20 @c007 @AC * AM2p10
label 60,212,-1,0,.20 @c007 @AC - OBS


Bob Smith wrote:

> Hi Ansley,
>         I was following your message to Helge regarding plot titles and
> labels. I have a little script that I've been trying to do multiple plots
> and have different symbols or types of lines and then print out a legend
> on the plot. Not working well though. Seems like there is a multitude of
> steps that have to happen to make this work or I'm not seeing the whole
> picture.
> plot/set_up/nolabel/xlim=90:-90:-20/ylim=210:230:2/sym=27 temp_djf_ave
> ppl xlab @TRLATITUDE
> ppl ylab @TRDeg K
> ppl plot
> plot/ov/nolabel/xlim=90:-90:-20/ylim=210:230:2/sym=33 temp_djf_ave1
> plot/ov/nolabel/xlim=90:-90:-20/ylim=210:230:2/sym=21 temp_djf_ave2
> plot/ov/nolabel/xlim=90:-90:-20/ylim=210:230:2/col=1 temp_djf_ave3 ! To
> label/nouser 3.90,6.25,0,0,.23 @TR Zonal Ave TEMP 200 for DJF 1979t1995
> label 60,215,-1,0,.20 @c7 @AC o AM2amip2
> label 60,214,-1,0,.20 @c7 @AC x AM2amip2v2
> label 60,213,-1,0,.20 @c7 @AC * AM2p10
> label 60,212,-1,0,.20 @c7 @AC - OBS
>         My hangup is in the label commands where after the @AC I have a o
> or x etc and I can't seem to get different symbols in the label command. I
> can't seem to find any examples of multiple plot output but if you have
> time to send me in the right direction I'd appreciate it.
>
> On Wed, 11 Dec 2002, Ansley Manke wrote:
>
> > 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
> >
> >
> >
>
> --
>
> --------------------------------------------------------------------------------
>
>      _/_/_/_/ _/_/_/_/ _/_/_/   _/        Robert G. Smith
>     _/       _/       _/    _/ _/         Computer Assistant
>    _/  _/_/ _/_/_/   _/    _/ _/          Geophysical Fluid Dynamics Laboratory
>   _/    _/ _/       _/    _/ _/           P.O. Box 308
>  _/_/_/_/ _/       _/_/_/   _/_/_/_/      Princeton, NJ  08542
>
> --------------------------------------------------------------------------------
>              Electronic Mail                             Telephone
>        Internet Address: bgs@gfdl.gov             Commercial: (609) 452-6593
>    PUGL - http://www.gfdl.gov/~bgs/pugl/pugl.html                                                   FAX: (609) 987-5063
> ================================================================================

--
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