[prev in list] [next in list] [prev in thread] [next in thread]
List: gnuplot-info
Subject: Re: [Gnuplot-info] Label value from file and caption under the graph
From: Hans-Bernhard_Bröker <broeker () physik ! rwth-aachen ! de>
Date: 2006-08-07 19:38:59
Message-ID: 44D796D3.5050909 () physik ! rwth-aachen ! de
[Download RAW message or body]
fusselpelusa wrote:
> Hi,
> I have a problem with labelling my plots at an arbitrary position (set label
> "... %f" '???filename and column/line???' at ....) using values from a file.
That's not surprising --- you can't do that. Gnuplot reads data from
outside files only in the {re|s|}plot commands. If you want to extract
a single piece of data from a file, you have to do that outside gnuplot,
and feed the result back into it as a command. The version-4.0 trick of
'set label "foo = %f", foo' works only for gnuplot-internal, numeric
variables, not for arbitrary data from external files.
If you want to extract lots of data from a file, wait for the 4.2
release and then use 'plot "file" with labels'
> Anyway, as the value I would like to be as label is not the only
> one in the line of my data file, perhaps awk will not work?
It will. You're badly underestimating awk. someone once wrote an
entire multi-targeting macro assembler in awk.
> Additionally I would like to implement underneith the plot a few lines of
> text from another textfile like a caption, is this possible with gnuplot?
Possible, sure (generate a multi-line 'set ylabel' or several 'set
label' commands from it), but rarely advisable. If you want a caption,
do it outside gnuplot, in the document processing system you're putting
that plot in.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic