Hi Mike, This facility was only implemented in version 3.03/07. Are you using this version ? Rene Brun On Tue, 23 Jul 2002, Mike Eads wrote: > I'm trying to draw two different histograms on the same canvas and I > would like to have the statistics box visible for both. For TH1F > histograms xyt0 and xyt0c: > > root [25] xyt0->Draw(); > root [26] xyt0c->Draw("sames"); > > Will draw both histograms, but the stats box of the second covers the > stat box of the first. Following the instructions to move the box from > the THistPainter::Paint documentation: > > root [27] TPaveStats *st = > (TPaveStats*)xyt0->GetListOfFunctions()->FindObject("stats") > root [28] st->SetX1NDC(1) > Error: illegal pointer to class object st 0x0 112 > FILE:/tmp/fileKzjdSx_cint LINE:1 > *** Interpreter error recovered *** > root [29] > > How can I move one of the statistics boxes so both are visible? > > Mike Eads >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:01 MET