Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?J=c3=b6rg_Buchholz?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: can I fit two columns when I use timefmt Date: Tue, 24 Oct 2017 14:19:32 +0200 Organization: A noiseless patient Spider Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 24 Oct 2017 12:19:32 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="f73ca1237ee9a2cb5c51a2452083d758"; logging-data="27211"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cD2PErlDTE7eHLLKW1mgZ6cGbtnhJnoQ=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 In-Reply-To: Content-Language: en-GB Cancel-Lock: sha1:OZoARwnTQjAfH/hw2kkEvg3s9ZQ= Xref: csiph.com comp.graphics.apps.gnuplot:3789 On 24.10.2017 13:30, Jean-Pierre Coulon wrote: > I have a datafile with lines like 171023_15h11m59s150 . > 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 > 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 Jörg