Re: variable bin widths with TH2

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Jul 08 1999 - 09:22:43 MEST


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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:35 MET