Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4112
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2018-11-27 04:26 -0800 |
| References | <7ab3166f-5221-4da0-8c3f-f2d7302cdb8c@googlegroups.com> <ptj8ba$uto$1@solani.org> |
| Message-ID | <b4639d74-ae45-4371-baf1-21b383907ae1@googlegroups.com> (permalink) |
| Subject | Re: Histogram using Gnuplot |
| From | Savin Beniwal <darshanbeniwal11@gmail.com> |
On Tuesday, November 27, 2018 at 4:34:11 PM UTC+5:30, Karl Ratzsch wrote: > Am 27.11.2018 um 10:02 schrieb Savin Beniwal: > > > gnuplot> plot"hist1.txt" u (rounded($1)):(1) smooth frequency with boxes > > > 1. I want to get a histogram with probability density rather than frequency. Means my histo box should show frequency/total no. of points. > > check "help smooth": You want "fnormal" instead of "frequency" > Thank you Prof. Karl. For density histogram, I used smooth density. i.e. gnuplot> plot"hist1.txt" u (bin($1,width)):(0.1) smooth kden w boxes t"". Gives me desired shape of the density histogram. > > 2 How to set/change the width of the histogram. > > Do you mean > > set xrange [start:end] But Sir each histogram has its box shape I didn't understand how to set bin_width of the histogram using: gnuplot> width=0.7 gnuplot> bin(x,width)=width*floor(x/width) > ? Also check the link to smooth.dem in "help fnormal" > > Karl I found no result regarding fnormal.
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
Histogram using Gnuplot Savin Beniwal <darshanbeniwal11@gmail.com> - 2018-11-27 01:02 -0800
Re: Histogram using Gnuplot Karl Ratzsch <mail.kfr@gmx.net> - 2018-11-27 12:04 +0100
Re: Histogram using Gnuplot Savin Beniwal <darshanbeniwal11@gmail.com> - 2018-11-27 04:26 -0800
Re: Histogram using Gnuplot Karl Ratzsch <mail.kfr@gmx.net> - 2018-11-27 13:44 +0100
Re: Histogram using Gnuplot Savin Beniwal <darshanbeniwal11@gmail.com> - 2018-11-27 08:32 -0800
csiph-web