Path: csiph.com!aioe.org!.POSTED!not-for-mail From: Jean-Pierre Coulon Newsgroups: comp.graphics.apps.gnuplot Subject: splot, putting labels corresponding to one parameter Date: Sat, 26 Aug 2017 08:05:12 +0200 Organization: Aioe.org NNTP Server Lines: 26 Message-ID: NNTP-Posting-Host: r8Kb9SaihqT7id0kKrj95Q.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Complaints-To: abuse@aioe.org User-Agent: Alpine 2.10 (WNT 1266 2009-07-14) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.graphics.apps.gnuplot:3731 My gnuplot file is: set nolog x; set log y; set log z set xtics 45; set x2tics 9; set grid set yrange[1:100]; set ytics 10; set mytics 10 unset ztics; set view 0,0 set xlabel "right column" ; set ylabel "middle column" set label "1000" at -90, 3.5, 1000 splot "mydata.txt" using 3:2:1 with lines \ title "my position according to left column value" mydata.txt contains: 100 100 0 200 80 -20 500 4 -60 1000 3.5 -90 2000 1.1 -120 4000 1 -180 Can I make the set label line more automatic, in the sense that Gnuplot will automatically fetch the line of mydata.txt containing 1000 in the left column, instead of copying the two other values of this line into my set label line? My data file will change! Jean-Pierre Coulon