Re: [ROOT] Zoom

From: Patois Yannick (patois@ganil.fr)
Date: Mon Oct 02 2000 - 13:51:48 MEST


On Mon, 2 Oct 2000 KOSU_FOKIN@garbo.lucas.lu.se wrote:

> to know Ymin and Ymax of my graph on the zoomed X. How can I get it? I have tried
> TH2::GetMinimum() and TH2::GetMaximum() but they both return zero all the
> time.

On a TH2 you get the min and max along Y axis on the histogram h2 by :

h2->GetYaxis()->GetXmin();
h2->GetYaxis()->GetXmax();

A call to TH2::Get(Min|Max)imum() will return you the range chosen on
the Z axis (unset by default).

Hope it helps,

	Yannick



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:34 MET