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


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

Re: can I fit two columns when I use timefmt

From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: can I fit two columns when I use timefmt
Date 2017-10-25 09:18 +0200
Organization solani.org
Message-ID <ospds1$ar1$1@solani.org> (permalink)
References <alpine.WNT.2.20.1710241324490.5548@dhcp3-6> <osnb4k$qib$1@dont-email.me> <alpine.WNT.2.20.1710241500370.5548@dhcp3-6> <osnh8j$4it$1@solani.org> <alpine.WNT.2.20.1710250754530.10296@dhcp3-6>

Show all headers | View raw


Am 25.10.2017 um 08:10 schrieb Jean-Pierre Coulon:
> On Tue, 24 Oct 2017, Karl Ratzsch wrote:
> 
>> You have a datafile with columns t, p(t), q(t), right?
> 
> My datafile contains these columns: 1: time in seconds, integer 2:
> time in %y%m%d_%Hh%Mm%Ss format 3: p(t) 4: q(t) I am happy with my
> plots using 2:3 or 2:4 with timefmt = this format. And I am able to
> select an xrange by putting my 2 limits in this format in the set
> xrange statement.
> 

Ah. That's imo not what you initially described (see your first
post). Nevermind.

>> Now what does model(x) describe?
> 
> p(t) = a*q(t) + b
> 
> and it works if I say fit model(x) datafile using 4:3 via a b.
> 
> How can I limit the range to the last two thirds of my datafile? My
> columns 3 and 4 are not monotonic.

So you want to correlate columns 3 and 4, but limit the range
according to column 1 (or 2) ? Got it.

You can

   fit model(x) dataf  us 3:($1<start?NaN:$1>end?NaN:$4) via a,b

, that just reads in NaN for any line where $1 is out of range. You
might use "stats" to set the range limiters.

  Karl

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


Thread

can I fit two columns when I use timefmt Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2017-10-24 13:30 +0200
  Re: can I fit two columns when I use timefmt Jörg Buchholz <bookwood4new@freenet.de> - 2017-10-24 14:19 +0200
    Re: can I fit two columns when I use timefmt Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2017-10-24 15:13 +0200
      Re: can I fit two columns when I use timefmt Karl Ratzsch <mail.kfr@gmx.net> - 2017-10-24 16:04 +0200
        Re: can I fit two columns when I use timefmt Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2017-10-25 08:10 +0200
          Re: can I fit two columns when I use timefmt Karl Ratzsch <mail.kfr@gmx.net> - 2017-10-25 09:18 +0200
            Re: can I fit two columns when I use timefmt Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2017-10-25 14:35 +0200
      Re: can I fit two columns when I use timefmt Jörg Buchholz <bookwood4new@freenet.de> - 2017-10-25 07:43 +0200
  Re: can I fit two columns when I use timefmt Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2017-10-25 01:01 +0200

csiph-web