Path: csiph.com!feeder.erje.net!1.eu.feeder.erje.net!news.unit0.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: splot, putting labels corresponding to one parameter Date: Sat, 26 Aug 2017 08:42:42 +0200 Organization: solani.org Lines: 18 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1503729761 1308 eJwNx8EBwCAIA8CVBJIUxxFa9h/B3u8YMvUDUeBwTv3bCns7U1/Z0DFetaIPgN1miZZbc3F0AR7dEMk= (26 Aug 2017 06:42:41 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sat, 26 Aug 2017 06:42:41 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 Cancel-Lock: sha1:Bu3M75PENTIAN+OdqckXHTL36dY= Content-Language: de-DE-1901 In-Reply-To: X-NNTP-Posting-Host: eJwNyckBwCAIBMCW5NgFyxGR/ktI5jswCm84QcdgwtWiG+ZXUJYHXLtHU1f8UZKCtKw64/2EHwMoEHM= X-User-ID: eJwNy8EBwEAEBMCWOHZJOVzov4Rk/gOj8oYTdCy2QB6bxBRc7uNzFlx/zSNUtFOsuxAp9z/zAQznEHM= Xref: csiph.com comp.graphics.apps.gnuplot:3732 Am 26.08.2017 um 08:05 schrieb Jean-Pierre Coulon: > 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" > > > 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! Use plot style "with labels": replot "mydata.txt" us ($1==1000?$3:NaN):2:1:1 with labels Karl