Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3732

Re: splot, putting labels corresponding to one parameter

From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: splot, putting labels corresponding to one parameter
Date 2017-08-26 08:42 +0200
Organization solani.org
Message-ID <onr591$18s$1@solani.org> (permalink)
References <alpine.WNT.2.10.1708260737460.1524@BecaneCoulon>

Show all headers | View raw


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

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

splot, putting labels corresponding to one parameter Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2017-08-26 08:05 +0200
  Re: splot, putting labels corresponding to one parameter Karl Ratzsch <mail.kfr@gmx.net> - 2017-08-26 08:42 +0200
    Re: splot, putting labels corresponding to one parameter Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2017-08-26 09:14 +0200
      Re: splot, putting labels corresponding to one parameter Karl Ratzsch <mail.kfr@gmx.net> - 2017-08-27 12:17 +0200
        Re: splot, putting labels corresponding to one parameter Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2017-08-30 02:05 +0200
          Re: splot, putting labels corresponding to one parameter Karl Ratzsch <mail.kfr@gmx.net> - 2017-08-30 10:00 +0200
            Re: splot, putting labels corresponding to one parameter Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2017-08-30 13:03 +0200
  Re: splot, putting labels corresponding to one parameter srishtinagu19@gmail.com - 2018-11-25 22:01 -0800
    Re: splot, putting labels corresponding to one parameter Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-26 10:38 +0100
      Re: splot, putting labels corresponding to one parameter srishtinagu19@gmail.com - 2018-11-26 01:46 -0800
        Re: splot, putting labels corresponding to one parameter Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-26 10:55 +0100
          Re: splot, putting labels corresponding to one parameter srishtinagu19@gmail.com - 2018-11-26 02:12 -0800
            Re: splot, putting labels corresponding to one parameter Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-26 11:31 +0100
              Re: splot, putting labels corresponding to one parameter srishtinagu19@gmail.com - 2018-11-26 02:50 -0800
                Re: splot, putting labels corresponding to one parameter srishtinagu19@gmail.com - 2018-11-26 02:52 -0800
                Re: splot, putting labels corresponding to one parameter Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-26 13:17 +0100
                Re: splot, putting labels corresponding to one parameter Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-26 16:29 +0100

csiph-web