Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4049
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2018-10-12 01:39 -0700 |
| References | <56e9537e-a224-4e59-97bd-311640c7d7f5@l28g2000prd.googlegroups.com> |
| Message-ID | <158f74be-e3c6-425f-908c-74dc8b1669da@googlegroups.com> (permalink) |
| Subject | Re: Calculate the minimum and maximum data with 'Gnuplot' |
| From | wenxu9042@gmail.com |
在 2008年5月20日星期二 UTC+2下午10:04:57,D.GH写道: > Hello, > > I would like if is possible to calculate the maximum and minimum from > a data file. > > My data in the following file (MyData.dat) > > 22.871536 > 22.029848 > 18.641526 > 11.097671 > 10.769791 > 14.375998 > 9.353067 > 16.888065 > 10.120260 > 11.920241 > 14.518588 > 26.042677 > 9.516011 > 16.486201 > 23.851848 > 10.483301 > > I do not know neither the maximum nor the maximum. > If I could calculate them with 'Gnuplot', it will help me with the > following code: > ############################# > Min= ....... > Max= ....... > NumberBin=10 > Shift=(Max-Min)/NumberBin > bin(x) = Min + Shift * int((x - Min) / Shift) > set style fill solid .2 border -8 > plot 'MyData.dat' u (bin($1)):(1.0) title '' smooth frequency with > boxes > set term postscript eps color > set out 'Myfig.eps' > set size 0.7, 0.7 > replot > ############################# > > Thank you for your ideas > > Dariush
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar
Re: Calculate the minimum and maximum data with 'Gnuplot' wenxu9042@gmail.com - 2018-10-12 01:39 -0700 Re: Calculate the minimum and maximum data with 'Gnuplot' Chris Elvidge <chris@mshome.net> - 2018-10-12 11:38 +0100
csiph-web