[ROOT] How to get x- and y-range of displayed histogram

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Tue Jun 01 2004 - 16:32:02 MEST


Dear all,

I display a histogram, eg
TH1F h("", "", 10, 0, 1);
h.Fill(0.5);
h.Draw();

The displayed range in x I get calling:
h.GetXaxis()->GetXmin();
h.GetXaxis()->GetXmax();

Doing the  same for the y-axis fails. How do I get this range? (The aim 
is to draw a line from through the histogram)

Thanks in advance,
Thomas.



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET