Plot TH1F when a script is running

Hi rooters,

I have a problem trying to plot a TH1F object during running of a macro.

I want to plot this histogram and then, after viewing it, I should set some parameters (using cin>>), for example the range of X axis, and then finish the script, using the parameters I’ve typed.

But the problem is that I can’t see the plot before the ending of the macro and so I can’t choose the right parameters.

Maybe I can’t do that…

Thanks in advance.

:slight_smile:

Cheers,
Tina.

If you do:

gPad->Update();

just after:

yourth1->Draw();

It should make it.