Re: variable bin widths with TH2

Rene Brun (Rene.Brun@cern.ch)
Thu, 08 Jul 1999 07:22:43 +0000


Hi Greg,
The classes TH1, TH2 and TH3 have constructors with fix and variable bin
sizes.
You can build the arrays binsX and binsY with any algorithm like you
describe.
Note that we currently have a restriction in the visualisation of
variable bin
size 2-d histograms. Options lego, surf cannot be used.

Rene Brun

Greg Veramendi wrote:
>
> Hello all,
> I was wondering if there is a way to implement variable bin
> widths, where the widths of the bins of one axis is dependent on where
> you are on the other axis. So for example:
>
> y<5, nbinsx = 20
>
> y>5, nbinsx = 10
>
> I was thinking of creating a 2D array just as you would create a 1D array
> for the TH1 case, but there isn't any constructor that would accept that.
> Does this functionality exist? If not, is it something that could be added
> in the future?
>
> thanks,
> Greg Veramendi