Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: stats for a row not a column Date: Sun, 7 Feb 2016 17:54:32 +0100 Organization: solani.org Lines: 49 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1454864076 18751 eJwFwYkBwDAIAsCVsKAx4+Rj/xF6l6yoM1RZSqdHaHuRYrkF07dJwAbX25hXDR6/6Hk6vx8UYhDP (7 Feb 2016 16:54:36 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 7 Feb 2016 16:54:36 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 X-User-ID: eJwFwQkRADAIAzBLMMpTOYMd/iUscQuNSYQHfH3v6nszj71eTqkMUnHZBqvDZEpXU3BiFPMBIZgQjQ== In-Reply-To: Cancel-Lock: sha1:Fmmz6ON+3KVuFZgWJ15drq2hKP8= X-NNTP-Posting-Host: eJwFwYEBwDAIArCXphbwnenK/ycsQTG4OgQPDOcjTV9IFSF6pNu1cgZMgO1vOq9f9ab4AwaHEJg= X-Enigmail-Draft-Status: N1110 Xref: csiph.com comp.graphics.apps.gnuplot:3219 Am 05.02.2016 um 21:09 schrieb Jörg Buchholz: > On 05.02.2016 19:46, Karl Ratzsch wrote: >> It should be possible with "stats matrix", if you limit the yrange >> in the right way? > > I try it with the option "every", but get also only colums and not rows. > > Next problem with "stats matrix" is "mean". > > "B 1 - 5" mean in "stats matrix" is 1.5 (6/4). In "stats using" the mean > is 3.0 (6/2). That is what I wont to have. So for me there a two > problems and no solution. > > Is it intentional that "stats matrix" and "stats using" calculate the > mean in two different ways? Hm. "every" is not what you want. I'm not even sure how it should work with matrix data. Limiting the y range with "stats matrix" indeed doesn't work: $dat << EOD 10 10 10 20 20 20 40 40 40 100 1000 10000 EOD stats [:] [1:1] $dat matrix The second range specifier refers to the data (z) values, not the constructed abscissa values. "set yrange" has no effect. And there seems to be a general problem with stat matrix, it interacts strangely with splot: splot $dat stats $dat matrix gives the mean of the x-axis values (here 0,1,2), as long as that splot is the last plot command. If you give plot $dat stats $dat matrix the correct mean is again returned.