Hi Chris, Get the pointer to the axis, eg TAxis *xaxis = h2->GetXaxis(); then get the axis bin range Int_t binmin = xaxis->GetFirst(); Int_t binmax = xaxis->GetLast() The range with: Double_t xmin = xaxis->GetBinLowEdge(binmin); Double_t xmax = xaxis->GetBinUpEdge(binmax); same for the y axis Rene Brun Chris Milne wrote: > > Hi there, > > I was wondering if anyone could help me find the range of the x-axis of a TH2F > Histogram, I can obtain the unzoomed range, however I want to obtain the zoomed > range in order to the set the range of another graph. > > Thanks > Chris Milne > ---------------------- > Heriot-Watt University > c.milne@hw.ac.uk
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:56 MET