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


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

Re: can I fit two columns when I use timefmt

Path csiph.com!weretis.net!feeder4.news.weretis.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-b.proxad.net!nnrp4-1.free.fr!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Tue, 24 Oct 2017 15:13:11 +0200
From Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr>
Subject Re: can I fit two columns when I use timefmt
In-Reply-To <osnb4k$qib$1@dont-email.me>
Message-ID <alpine.WNT.2.20.1710241500370.5548@dhcp3-6> (permalink)
References <alpine.WNT.2.20.1710241324490.5548@dhcp3-6> <osnb4k$qib$1@dont-email.me>
User-Agent Alpine 2.20 (WNT 67 2015-01-07)
MIME-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8BIT
Lines 31
Organization Guest of ProXad - France
NNTP-Posting-Date 24 Oct 2017 15:13:11 CEST
NNTP-Posting-Host 192.54.176.195
X-Trace 1508850791 news-1.free.fr 3291 192.54.176.195:20006
X-Complaints-To abuse@proxad.net
Xref csiph.com comp.graphics.apps.gnuplot:3790

Show key headers only | View raw


On Tue, 24 Oct 2017, Jörg Buchholz wrote:

> On 24.10.2017 13:30, Jean-Pierre Coulon wrote:
>> I have a datafile with lines like 171023_15h11m59s150 <value2> <value3>.
>> I know how to plot columns 2 and 3 using set xdata time; set timefmt
>> "%y%m%d_%Hh%Mm%Ss"
>
> You plot value2 and value3 by using value1 (your time data) as x value?
>
> plot 'datafile' u 1:2, '' u 1:3

This already works fine.

>> My model is a = .028; b=.04; model(x) = a*x + b. When I say
>> fit modele(x) "mystuff.txt" using 2:3 via a, b I obtain: No data to fit
>
> Here you use value2 as xdata and they don't have a timeformat.
>
>> What is the right way to do?
>
> Before fitting 2:3 unset xdata time by using
>
> set xdata

Thanks. It works if I also say unset xrange. In this case I also have a first 
column in simple integers and the 2nd column is in time format. I was plotting 
with using 2:<other column>. Does Gnuplot use this 1srt column for the fit 
if I say fit using <two other columns> ?

Jean-Pierre Coulon

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