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


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

Re: using stats on two column data file

From Hans-Bernhard Bröker <HBBroeker@t-online.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: using stats on two column data file
Date 2016-10-23 16:14 +0200
Message-ID <e73uueFjnnhU1@mid.dfncis.de> (permalink)
References <76ee42f2-e398-432a-8c49-88a2648d83a1@googlegroups.com>

Show all headers | View raw


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.

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


Thread

using stats on two column data file stuart.kendrick.sea@gmail.com - 2016-10-23 06:33 -0700
  Re: using stats on two column data file Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2016-10-23 16:14 +0200

csiph-web