it will just draw the histogram using dots as if I use the option Draw(“P”), and whatever option I use it will not be taken into account.
Could someone tell me please why it behaves like that ?
Cheers,
Thanks in advance.
Diallo.
When Scale is called on an histogram it set some flag saying it has error bars and in such case an histogram is drawn with error bars. That’s what you see. The HIST option allows to bypass this:
{
auto *h = new TH1F("","",100,-4.,4);
h->FillRandom("gaus");
h->Scale(0.5);
h->Draw("HIST L");
}
void named() {
TText ti(.05, .5, "text is invisible because the text is deleted at the end of the macro");
ti.Draw();
auto *tv = new TText(.05, .6, "text is visible because the pointer remains after the macro execution");
tv->Draw();
}