[ROOT] Re: range on TAxis

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Sep 12 2002 - 19:54:02 MEST


Use a variable bin size histogram, giving an array of N+1 bins

Rene Brun

On Thu, 12 Sep 2002, Perfetto Francesco wrote:

> Hi All
> How can I change the range on x-axis of an histogram keeping
> (preservation) fixed binsize?
> e.g.:I have an histo with 8 bins in the intervall -1,.88, I want
> to keep 8 bins in this interval but to have the x-axix running between
> -2,2
> TH1D *h1 = new TH1D("h1","myhisto",8,-1,.88);
> h1->Draw();
> ...
> 
> 
> 				best regards
> 				Francesco.
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:09 MET