How to hide the title with type TPaveText of a histogram

Hi rooters,

I have drawn a histogram. By default, the histogram title with type TPaveText
is shown at the up-left corner. I want to remove it, what should I do?

thanks!

gStyle->SetOptTitle90);

Rene

[quote=“brun”]gStyle->SetOptTitle90);

Rene[/quote]

Thank you, Rene.
But now I have a canvas divided into 4 pads, with each pad a histogram.
and I want only one histogram, for example, the second, to have the
TPaveText title, while the others not to dislplay their titles. For this, what
should I do?

thanks again!
Yanbin

gStyle->SetOptTitle(0/1) sets a global default option.
You can disable the printing of the title for histogram h via
h->SetBit(TH1::kNoTitle);

see TH1 header file

Rene

1 Like