Transparent tpavestat object

Dear all,
I’ve tried several ways to get the stat box transparent:

  TPaveStats *ps;
  ps = (TPaveStats*)h1->GetListOfFunctions()->FindObject("stats");
  ps->SetFillStyle(4000);
  gPad->Modified();
  gPad->Draw();

I saved canvas as png but the stat box is still not transparent.
And the stat box is not transparent in canvas too.

What am I doing wrong here?

Many thanks in advance and regards,
Marco

ps->SetFillStyle(0);

Thanks! …

I’m puzzled the magic-number here is ‘0’…
The method IsTransaparent cheks for >=4000 && <=4100

http://root.cern.ch/root/html/TAttFill.html#TAttFill:IsTransparent

Regards,
Marco Bomben[/quote]

root.cern.ch/root/html/TAttFill.html#F2

now everything it’s clear! Many thanks!!!

Regards,
Marco

:slight_smile:

See download/file.php?id=3763&mode=view
from root.cern.ch/phpBB2/viewtopic.ph … ght=#35226 also