setting up the "key"

setting up the "key"

Post by Jim Bau » Sat, 24 Aug 1996 04:00:00



greetings all,

can someone tell me how to change the text in the key? i am plotting
with:

        G N U P L O T
        MS-Windows 32 bit version 3.5 (pre 3.6)
        patchlevel beta 261
        last modified Tue Jan 23 20:39:17 GMT 1996

and i am trying:

gnuplot> plot 'FILE.DAT' using 1:2 with lines, 'FILE.DAT' using 1:3

so that i get a plot of theory (1:2) and actual (1:3) but the key is set
as "FILE.DAT using 1:2" and "FILE.DAT using 1:3" what i want is the key
do display "theoretical" and "measured"

this is probably a simple one (i am sure i have seen it done before) but
i cant seem to find it in the HELP, any clues?

thanks,
        -jim
--

Medical Laser Lab                       http://www.ee.ualberta.ca/~jimbo
University of Alberta 136 Civil Elect   Voice (403)492-1489
Edmonton, Alberta Canada  T6G 2G7       Fax   (403)492-1811

 
 
 

setting up the "key"

Post by crawford richa » Sat, 24 Aug 1996 04:00:00




> can someone tell me how to change the text in the key? i am plotting
> with:

>    G N U P L O T
>    MS-Windows 32 bit version 3.5 (pre 3.6)
>    patchlevel beta 261
>    last modified Tue Jan 23 20:39:17 GMT 1996

> and i am trying:

> gnuplot> plot 'FILE.DAT' using 1:2 with lines, 'FILE.DAT' using 1:3

> so that i get a plot of theory (1:2) and actual (1:3) but the key is set
> as "FILE.DAT using 1:2" and "FILE.DAT using 1:3" what i want is the key
> do display "theoretical" and "measured"

> this is probably a simple one (i am sure i have seen it done before) but
> i cant seem to find it in the HELP, any clues?

What you are looking for is the 'title' option on the 'plot' command:

   plot 'FILE.DAT' using 1:2 title 'theoretical' with lines,\
        'FILE.DAT' using 1:3 title 'measured'

If you don't want a data set/function to appear in the key, use 'notitle'
instead of 'title' (and, of course, no text).  Or use 'set nokey' to
eliminate the key entirely.