Two plots on same canvas - cannot move stats box

Hello!

I use
TPaveStats st = (TPaveStats)Histo2->FindObject(“stats”);
st->SetY2NDC(0.63);
st->SetY1NDC(0.27);

and the macro crashes with

Error: illegal pointer to class object st 0x0 346 FILE:

The root version v4_04

Any ideas? I just want to move the second stat box.

Gabriel

You must pad->Update() before accessing the “stats” object

Rene

Perfect! Thanks.