Path: csiph.com!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: using stats on two column data file Date: Sun, 23 Oct 2016 16:14:28 +0200 Lines: 26 Message-ID: References: <76ee42f2-e398-432a-8c49-88a2648d83a1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.dfncis.de K4EfhFJ0quDNUuKIyifgWgv1OgRcxT9xIcSrDAThhQEz/NKelHdYeS3FTF Cancel-Lock: sha1:5rw+dIhZ1uaqjM9aR25RGcufZDY= User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 In-Reply-To: <76ee42f2-e398-432a-8c49-88a2648d83a1@googlegroups.com> Xref: csiph.com comp.graphics.apps.gnuplot:3422 Am 23.10.2016 um 15:33 schrieb stuart.kendrick.sea@gmail.com: > I can use stats successfully a data file consisting of a single > column but not in a file with two columns. Suggestions on how to figure > out what I am fumbling? The key to the mystery is that, as far as you've told gnuplot by the time your script issues the 'stat' command, that data file has not 2, but 3 columns: > 2015-10-25 14, 95 > 2015-10-30 04, 474 > 2015-11-01 12, 93 > 2015-11-01 13, 320 > 2015-11-01 14, 425 > 2015-11-01 15, 80 If you want 'stats' to treat that as a 2-column file, you have to place this: > # File specifics > set datafile sep ',' _before_ the stats command.