Fill Histogram-patch - Graphics

This is a discussion on Fill Histogram-patch - Graphics ; I would like to use gnuplot to construct histograms-i.e define bins and fill them. It seems not possible with the V4.0. Does it have patches available for the V4.0 to allow to construct such histograms? Thanks...

+ Reply to Thread
Results 1 to 5 of 5

Fill Histogram-patch

  1. Default Fill Histogram-patch

    I would like to use gnuplot to construct histograms-i.e define bins and
    fill them. It seems not possible with the V4.0. Does it have patches
    available for the V4.0 to allow to construct such histograms?

    Thanks


  2. Default Re: Fill Histogram-patch

    In article <1127072417.505498.133530@z14g2000cwz.googlegroups.com>,
    SebH <bassihoude@hotmail.com> wrote:
    >I would like to use gnuplot to construct histograms-i.e define bins and
    >fill them. It seems not possible with the V4.0. Does it have patches
    >available for the V4.0 to allow to construct such histograms?


    There are patches for *drawing* them, and it is standard plotting
    mode in 4.1, but what exactly do you mean by "constructing"?
    Please give an example of the input data format and what you
    expect to be plotted when it is read.

    --
    Ethan A Merritt

  3. Default Re: Fill Histogram-patch


    Ethan Merritt wrote:
    > In article <1127072417.505498.133530@z14g2000cwz.googlegroups.com>,
    > SebH <bassihoude@hotmail.com> wrote:
    > >I would like to use gnuplot to construct histograms-i.e define bins and
    > >fill them. It seems not possible with the V4.0. Does it have patches
    > >available for the V4.0 to allow to construct such histograms?

    >
    > There are patches for *drawing* them, and it is standard plotting
    > mode in 4.1, but what exactly do you mean by "constructing"?
    > Please give an example of the input data format and what you
    > expect to be plotted when it is read.
    >
    > --
    > Ethan A Merritt


    I acknowledge that *construct* is maybe not the right term.

    What I want to do is to draw an histogram by reading a one dimension
    vector filled with statistical quantities. For example, if my data
    were:
    {2,3,4,5,11,14,17,22,26}
    I would like to separe the scale of the x-axis in a number of bins. For
    example, if I the scale of the x-axis is [0,30], I would like to be
    able to say that I want three bins of width 10. My histogram should
    then have three boxes of width 10 where the first box would have a
    height of 4, the second box-height of 3 and the third box-height of 2.

    So, I want to draw a one-dimension plot....


  4. Default Re: Fill Histogram-patch

    In article <1127160995.185304.203310@o13g2000cwo.googlegroups.com>,
    SebH <bassihoude@hotmail.com> wrote:
    >
    >I acknowledge that *construct* is maybe not the right term.
    >
    >What I want to do is to draw an histogram by reading a one dimension
    >vector filled with statistical quantities. For example, if my data
    >were:
    >{2,3,4,5,11,14,17,22,26}
    >I would like to separe the scale of the x-axis in a number of bins. For
    >example, if I the scale of the x-axis is [0,30], I would like to be
    >able to say that I want three bins of width 10. My histogram should
    >then have three boxes of width 10 where the first box would have a
    >height of 4, the second box-height of 3 and the third box-height of 2.


    That's perfectly clear and reasonable, but unfortunately gnuplot will
    not do that for you. You need an external program or script to do
    the binning. I'll send you an example perl script.

    --
    Ethan A Merritt

  5. Default Re: Fill Histogram-patch

    Ethan Merritt <merritt@u.washington.edu> wrote:
    > In article <1127160995.185304.203310@o13g2000cwo.googlegroups.com>,


    > >I would like to separe the scale of the x-axis in a number of bins. For
    > >example, if I the scale of the x-axis is [0,30], I would like to be


    > That's perfectly clear and reasonable, but unfortunately gnuplot will
    > not do that for you.


    That's not completely true, I think. gnuplot can do histogram collection
    on itself, at least in simple cases. The "smooth freq" option found in
    version 4.0 was added explicitly for that.


    plot 'data' using (int($1/10)*10)1) smooth freq

    counts entries every 10 x axis units.

    --
    Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de)
    Even if all the snow were burnt, ashes would remain.

+ Reply to Thread

Similar Threads

  1. Histogram help
    By Application Development in forum C
    Replies: 0
    Last Post: 06-13-2007, 11:28 AM
  2. histogram
    By Application Development in forum Graphics
    Replies: 0
    Last Post: 04-04-2007, 05:00 PM
  3. histogram along y-axis
    By Application Development in forum Idl-pvwave
    Replies: 4
    Last Post: 12-08-2006, 09:46 AM
  4. Histogram Help
    By Application Development in forum Graphics
    Replies: 0
    Last Post: 06-16-2006, 09:54 AM
  5. 3D Histogram
    By Application Development in forum Graphics
    Replies: 5
    Last Post: 01-12-2006, 01:20 PM