Hi Matthieu, Do: m_hstack[i]->GetHistogram()->GetMaximum(); Rene Brun Matthieu Lechowski wrote: > > Hello, > > I do not succeed in getting the maximum of the Y axis of a THStack. > > I have a table THStack* m_hstack[6]; > I fill it (with several TH1F*), draw it, then I do: > cout<<m_hstack[i]->GetYaxis()->GetXmax()<<endl; > and I get "1" (instead of about 50) ! > > Actually, when I do > cout<<m_hstack[i]->GetYaxis()->GetNbins()<<endl; > I get "1" too (and also for GetBinWidth(1)). > > For the X axis, I do not have this problem. > > If it's the right method, have somebody an idea of my problem ? > Else, how can I get this maximum ? > Thank you. > > Matthieu Lechowski > > I use on lxplus at cern: > /afs/cern.ch/sw/root/v3.05.05/rh73_gcc2952/root
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET