Hi Ed, do: new TLine(xcut,gPad->GetUymin(),xcut,gPad->GetUymax()); Rene Brun On Thu, 5 Sep 2002, Edward Chen wrote: > Hi - yet another question: > > I'm trying to draw TLines on top of either TH1F's or THStack's. The lines > are vertical lines which indicate the position of a cut, for example. I'd > like the line to extend from the low horizontal edge of the histo box to > the upper horizontal edge of the histo box. > > The lower edge will always have a Y coordinate of 0, so that's no problem. > > But I can't seem to figure out a way to get automatically the Y coordinate > of the upper edge. For example using THStack::getMaximum seems to return > the maximum, but not the coordinate of the upper horizontal edge. Using > TH1F::getMaximum or TH1F::getMaximumStored also doesn't give satisfactory > results either. > > Thanks in advance, > > -Ed >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:08 MET