Statistics Box with Draw("same")

From: Marcelo G. Munhoz (munhoz@physics.wayne.edu)
Date: Mon Sep 13 1999 - 16:47:02 MEST


    Hi,

    I'd like to know how to plot two or three histograms in the same
frame (using Draw("same")) and still get the statistics box for all
histograms. I tried something like :

hpx->Draw("same");
gPad->Update();
TPaveText *stats = (TPaveText*)gPad->GetPrimitive("stats");
stats->Draw();
gPad->Modified();

but I still get the statistics box only from the first histogram. It
seems that the Pad is not updated when one uses "same". Can I force such
update or get the statistics box in another way?

    Thanks for any help,

                Marcelo.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:39 MET