X-Received: by 2002:a05:660c:18a:: with SMTP id v10mr4095195itj.10.1539333551870; Fri, 12 Oct 2018 01:39:11 -0700 (PDT) X-Received: by 2002:a9d:3d06:: with SMTP id a6mr481otc.0.1539333551746; Fri, 12 Oct 2018 01:39:11 -0700 (PDT) Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!x98-v6no33556ita.0!news-out.google.com!n199-v6ni54itn.0!nntp.google.com!z5-v6no33185ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Fri, 12 Oct 2018 01:39:11 -0700 (PDT) In-Reply-To: <56e9537e-a224-4e59-97bd-311640c7d7f5@l28g2000prd.googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=130.83.194.151; posting-account=NgES0AoAAAABfXvYwpDIx0yvgimYDt13 NNTP-Posting-Host: 130.83.194.151 References: <56e9537e-a224-4e59-97bd-311640c7d7f5@l28g2000prd.googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <158f74be-e3c6-425f-908c-74dc8b1669da@googlegroups.com> Subject: Re: Calculate the minimum and maximum data with 'Gnuplot' From: wenxu9042@gmail.com Injection-Date: Fri, 12 Oct 2018 08:39:11 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 47 Xref: csiph.com comp.graphics.apps.gnuplot:4049 =E5=9C=A8 2008=E5=B9=B45=E6=9C=8820=E6=97=A5=E6=98=9F=E6=9C=9F=E4=BA=8C UTC= +2=E4=B8=8B=E5=8D=8810:04:57=EF=BC=8CD.GH=E5=86=99=E9=81=93=EF=BC=9A > Hello, >=20 > I would like if is possible to calculate the maximum and minimum from > a data file. >=20 > My data in the following file (MyData.dat) >=20 > 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 >=20 > 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=3D ....... > Max=3D ....... > NumberBin=3D10 > Shift=3D(Max-Min)/NumberBin > bin(x) =3D 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 > ############################# >=20 > Thank you for your ideas >=20 > Dariush