[ROOT] min and max of Y-axis

From: Guillaume Blanc (gblanc@hep.saclay.cea.fr)
Date: Thu Oct 03 2002 - 01:29:17 MEST


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