Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3219
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: stats for a row not a column |
| Date | 2016-02-07 17:54 +0100 |
| Organization | solani.org |
| Message-ID | <n97ssc$i9v$1@solani.org> (permalink) |
| References | <n909ea$1lk$1@dont-email.me> <n92qmm$i8v$1@solani.org> <n92vbv$4i9$1@dont-email.me> |
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.
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
stats for a row not a column Jörg Buchholz <bookwood4news@freenet.de> - 2016-02-04 20:42 +0100
Re: stats for a row not a column Jörg Buchholz <bookwood4news@freenet.de> - 2016-02-05 18:34 +0100
Re: stats for a row not a column Karl Ratzsch <mail.kfr@gmx.net> - 2016-02-05 19:46 +0100
Re: stats for a row not a column Jörg Buchholz <bookwood4new@freenet.de> - 2016-02-05 21:09 +0100
Re: stats for a row not a column Karl Ratzsch <mail.kfr@gmx.net> - 2016-02-07 17:54 +0100
Re: stats for a row not a column Jörg Buchholz <bookwood4news@freenet.de> - 2016-02-08 19:32 +0100
Re: stats for a row not a column Karl Ratzsch <mail.kfr@gmx.net> - 2016-02-09 10:15 +0100
Re: stats for a row not a column Ethan A Merritt <sfeam@users.sourceforge.net> - 2016-02-09 11:44 -0800
Re: stats for a row not a column Karl Ratzsch <mail.kfr@gmx.net> - 2016-02-09 22:48 +0100
csiph-web