Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4049 > unrolled thread
| Started by | wenxu9042@gmail.com |
|---|---|
| First post | 2018-10-12 01:39 -0700 |
| Last post | 2018-10-12 11:38 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
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
| From | wenxu9042@gmail.com |
|---|---|
| Date | 2018-10-12 01:39 -0700 |
| Subject | Re: Calculate the minimum and maximum data with 'Gnuplot' |
| Message-ID | <158f74be-e3c6-425f-908c-74dc8b1669da@googlegroups.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
[toc] | [next] | [standalone]
| From | Chris Elvidge <chris@mshome.net> |
|---|---|
| Date | 2018-10-12 11:38 +0100 |
| Message-ID | <ppptid$4m2$1@dont-email.me> |
| In reply to | #4049 |
On 12/10/2018 09:39, wenxu9042@gmail.com wrote: > 在 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 > Use "stats" on datafile to get max and min values -- Chris Elvidge, England
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web