Re: histogram zoom in batch

From: Yasuhiro SHIRASAKI (joke@awa.tohoku.ac.jp)
Date: Wed Oct 28 1998 - 11:47:55 MET


Hi rooters,

>In a macro, you can select the bins range for the X, Y or Z axis
>via TAxis::SetRange.
>For example, for a 1-D histogram h
> Root > h->GetXaxis()->SetRange(34,67);
> Root > h->Draw();

sometimes we set view range as follows:

h1 = new TH1S("name", "title", 150, -10, 20);
 :
 :
h1->GetXaxis()->SetRange(h1->GetXaxis()->FindBin(-5),
			h1->GetXaxis()->FindBin(5));
h1->Draw();

--
Yasuhiro SHIRASAKI : Experimental Particle Physics, JLC Team
Graduate school of Science, TOHOKU University 980-8578 Japan.
Phone: +81-22-217-6727 Fax: +81-22-217-6728



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