X-Received: by 2002:a24:a91:: with SMTP id 139-v6mr925823itw.9.1543336343653; Tue, 27 Nov 2018 08:32:23 -0800 (PST) X-Received: by 2002:aca:c703:: with SMTP id x3mr21533oif.5.1543336343485; Tue, 27 Nov 2018 08:32:23 -0800 (PST) Path: csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!q69no94432itb.0!news-out.google.com!y103-v6ni74ita.0!nntp.google.com!k10no94728itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Tue, 27 Nov 2018 08:32:23 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=43.231.57.26; posting-account=8SNwFAoAAACMlYSccTSYy0kXtaQrNAbU NNTP-Posting-Host: 43.231.57.26 References: <7ab3166f-5221-4da0-8c3f-f2d7302cdb8c@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <860e99f6-1e0c-4aa1-a3cb-7da681dfafc2@googlegroups.com> Subject: Re: Histogram using Gnuplot From: Savin Beniwal Injection-Date: Tue, 27 Nov 2018 16:32:23 +0000 Content-Type: text/plain; charset="UTF-8" Lines: 43 Xref: csiph.com comp.graphics.apps.gnuplot:4114 On Tuesday, November 27, 2018 at 6:14:58 PM UTC+5:30, Karl Ratzsch wrote: > Am 27.11.2018 um 13:26 schrieb Savin Beniwal: > > On Tuesday, November 27, 2018 at 4:34:11 PM UTC+5:30, Karl Ratzsch wrote: > >> > >> check "help smooth": You want "fnormal" instead of "frequency" > >> > > 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. > > I'm not sure if this gives the correct result. You want binned results, > not density estimates, right? > > > > >>> 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) > > you mean the width of the actual boxes in the plot? > > Check "help style boxes": You need to give a third parameter to your > plot to specify it. > > plot dataf using (bin($1)):(1):(plot_width/numberofbins) smooth freq > > >> ? Also check the link to smooth.dem in "help fnormal" > >> > >> Karl > > I found no result regarding fnormal. > > > > Oh. What is your gnuplot version? The "fnormal" smoothing routine first > came with gp5.2 last year. Actually, I want to get this plot:- https://i.ibb.co/NrzdzcN/i-need-this.png I think this plot is w.r.to density(y-axis) But using density I'm getting this plot https://i.ibb.co/TRR2LYN/Plot-kden.png I want to replot this plot with a different width of each histo bars. My basic problem is I still don't know how to set each histo bar width. What does mean by kdensity. Please share me to solve this mystery (For me). I think you got it my problem.