[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuplot-info
Subject:    Re: string from file to label
From:       Dirk Caspary <dcaspar () gwdg ! de>
Date:       1999-07-09 16:17:54
[Download RAW message or body]


Hello Birke!

> I want to read a string from a file and place it into a gnuplot label. The
> reason is that I have lots of data files, each of them characterised by a
> title in accompanying datatitle files; and I want to read these titles out
> of the datatitle files and write them into the gnuplot label.
> 
> something like
>   gnuplot<<EOF
>   set label <transfer a string from datatitle file here to>
>   plot "data file"
>   ...
>   EOF

I had the same problem and solved it by writing perl scripts using a
commandline to tell the script which files should be treated. The
scripts build a file with the gnuplot command including labels or
the specific title and starting gnuplot with this file. If you want
I can mail you examples of these scripts.

	d!rk
 
------------------------------------------------------------------------
 d!rk caspary

 Institut fuer Physikalische Chemie    Phone +49 (0)551 393135 (office)
 der Universitaet Goettingen                 +49 (0)551 393142 (fax)
 F.R. Germany                                +49 (0)551 75767  (private)

                                       email dcaspar@gwdg.de

 - -
[[[[ to unsubscribe from info-gnuplot, send an email with body
unsubscribe info-gnuplot
to majordomo@dartmouth.edu
]]]]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic