Declan Grady wrote:
> I'm working with gnuplot, creating psotscript files for printing from an
> ascii file with 2 columns.
>> I'd like to have the first line of the ascii file to have the date and time
> of the measurments, and an alphanumeric reference number, but I also need
> to exclude this line from my plotted data.
>> Ideally, I'd like to pick up this info, in the graph title.
>> I've been googling for a "while" now and cannot find a way to do it.
>> I'm sure someone has a way ?
>gnuplot supports executing external commands I think
so you can probably do something like:
title `head file | cut -f2`
plot file using "format"
Note gnuplot will ignore lines it can't plot (or that don't match
the format) automatically.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!