[ROOT] range on TAxis

From: Perfetto Francesco (Francesco.Perfetto@na.infn.it)
Date: Thu Sep 12 2002 - 19:30:15 MEST


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