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: Tue, 9 Feb 2016 10:15:43 +0100 Organization: solani.org Lines: 31 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1455009349 613 eJwFwYEBwCAIA7CXxEKVcyqD/09YEqCxjjPoMTFHgOWx96jqteUdX3fKCA9fG7dVV5U5KOYPHNERMQ== (9 Feb 2016 09:15:49 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 9 Feb 2016 09:15:49 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 X-User-ID: eJwFwYERACEIA7CVqJT+/TgKdv8RTCoF9UeVWC6Pxe0/0BXbzjY9oVXnLjSOMMTVICbNjQcxixGj In-Reply-To: Cancel-Lock: sha1:COFr8/N0P85zNVkl1kfGiEpokD0= X-NNTP-Posting-Host: eJwFwQkRADAIAzBLdFAeOYMd/iUsoTp8wpxuXK4oZiojUdhHuxGPTW1zoaQv+qLs6Tk6PfIBBsAQZg== Xref: csiph.com comp.graphics.apps.gnuplot:3221 Am 07.02.2016 um 17:54 schrieb Karl Ratzsch: > 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. I've filed a bug on https://sourceforge.net/p/gnuplot/bugs/1739/ for this.