Hi, I assume that you want to access the maximum value of a histogram and not the maximum value in Y of the pad. If yes, use h->GetMaximum(); Rene Brun On Thu, 3 Oct 2002, Guillaume Blanc wrote: > Hello, > > Perhaps this question is obvious, but I would like to get the max value on > the Y axis of a TH1F histo. I tried : h->GetYaxis()->GetXmax() but it > doesn't work (return a wrong value); note that the equivalent command > works for the X axis. And gPad->GetUymax() returns also a > wrong value (closer to the one expected, but still wrong)... > I just would to add another X axis on top of my plot with a different > scale: I need the Y axis max value in order to position it accurately... > > Well, if anybody has a idea! > > Thanks for your help, > > Guillaume Blanc >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:12 MET