Re: fixed bin width

From: Adrian Sevcenco <Adrian.Sevcenco_at_cern.ch>
Date: Tue, 8 Jul 2008 16:55:24 +0300


Rene Brun wrote:
> Yes, use automatic binning
> TH1F *h = new TH1F("h","title",100,0,0);
Thanks for the answer. but ... wouldn't this give me an histogram with a fixed number of bins ? that will have their widths increased as it is filled?
In principle i was asking about something that will scale the axis range (and number of bins) without modifying the bin width. I ask about this because i would like to have a histogram on which i only declare the bin width and that afterwards grow (axis and number of bins) as i fill it.
Thank you,
Best regards,
Adrian

> Setting the upper limit <= lower limit will trigger the automatic
> binning (true for 1,2 and 3 dimensions)
>
> Rene Brun
>
> Adrian Sevcenco wrote:

>> Hi,
>> Is there a possibility of setting up a histogram with a fixed bin 
>> width that will keep scaling the axis range automatically as it is 
>> filled?
>> Thank you,
>> Best regards,
>> Adrian


Received on Tue Jul 08 2008 - 15:55:49 CEST

This archive was generated by hypermail 2.2.0 : Tue Jul 08 2008 - 17:50:02 CEST