Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1968

Re: histogram : without using commanade "smooth freq"

From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: histogram : without using commanade "smooth freq"
Followup-To comp.graphics.apps.gnuplot
Date 2013-08-14 08:46 -0700
Organization gnuplot development team
Message-ID <kug8pa$h17$1@dont-email.me> (permalink)
References (1 earlier) <ku9u8s$nh6$1@news.rz.uni-karlsruhe.de> <0954fd20-3f7d-4898-bdd4-5e95b239bea5@googlegroups.com> <kucnne$s3o$1@news.rz.uni-karlsruhe.de> <9a3488c0-c506-4c0c-a254-f2b0f7bc5eb4@googlegroups.com> <kug45h$7ho$1@news.rz.uni-karlsruhe.de>

Followups directed to: comp.graphics.apps.gnuplot

Show all headers | View raw


Karl wrote:

> Am 13.08.2013 19:48, schrieb D.GH:
>> bin(x) =XX_min+bs*int(x/bs)
> 
>> 
>> I do not understand why xlow  = xhigh ?
> 
> Somehow the combination of "smooth freq" and "with boxes" doesn´t work
> correctly. The width of the boxes cannot be changed :
> 
> ===
> set yrange [0:]
> 
> boxwidth=0.2

The command you want is
   set boxwidth 0.2 absolute




> 
> plot '-' using ($1):(1):(boxwidth) smooth freq w boxes
> 1
> 2
> 2
> 3
> e
> ===
> 
> They always stretch up to the next box, and the table output then
> prints nonsense too.
> 
> 
> 
> But xlow and xhigh would in any case only contain the average of the
> centers of adjacent boxes. Any information on the actual values that
> contribute to the individual bins is cut off by the int() function in
> your binning.
> 
> 
>   Karl

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

histogram :  without using commanade "smooth freq" "D.GH" <dariush.ghorbanzadeh@gmail.com> - 2013-08-11 16:29 -0700
  Re: histogram :  without using commanade "smooth freq" Karl <mail.kfr@gmx.net> - 2013-08-12 08:10 +0200
    Re: histogram :  without using commanade "smooth freq" "D.GH" <dariush.ghorbanzadeh@gmail.com> - 2013-08-12 15:35 -0700
      Re: histogram :  without using commanade "smooth freq" Karl <ratzsch@polymer.uka.de> - 2013-08-13 09:37 +0200
        Re: histogram :  without using commanade "smooth freq" "D.GH" <dariush.ghorbanzadeh@gmail.com> - 2013-08-13 06:45 -0700
        Re: histogram :  without using commanade "smooth freq" "D.GH" <dariush.ghorbanzadeh@gmail.com> - 2013-08-13 10:48 -0700
          Re: histogram :  without using commanade "smooth freq" Karl <mail.kfr@gmx.net> - 2013-08-14 16:27 +0200
            Re: histogram :  without using commanade "smooth freq" sfeam <sfeam@users.sourceforge.net> - 2013-08-14 08:46 -0700
              Re: histogram :  without using commanade "smooth freq" Karl <mail.kfr@gmx.net> - 2013-08-14 18:48 +0200
              Re: histogram :  without using commanade "smooth freq" Karl <mail.kfr@gmx.net> - 2013-08-14 18:54 +0200
                Re: histogram :  without using commanade "smooth freq" sfeam <sfeam@users.sourceforge.net> - 2013-08-14 18:05 -0700
                Re: histogram :  without using commanade "smooth freq" "D.GH" <dariush.ghorbanzadeh@gmail.com> - 2013-08-15 16:00 -0700
                Re: histogram :  without using commanade "smooth freq" sfeam <sfeam@users.sourceforge.net> - 2013-08-15 17:18 -0700
      Re: histogram :  without using commanade "smooth freq" Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2013-08-13 22:35 +0200

csiph-web