Pop Up FitPanel from Macro

Hi ROOTers,

out of curiosity: given a pointer h to a histogram, the line

entered in the interpreter pops up the Fit Panel GUI alright. But the same line in a macro doesn’t. Why is this? What would I need to do if in the end of a macro I’d like to have the Fit Panel there for the user to continue with it?

Thanks!

Cheers,
Rafael :slight_smile:

Ah, OK, I figured out what I would have to do to get it in a macro as well: One needs the usual

canvas->Modified(); canvas->Update(); But the question remains what the canvas has to do with the popup of the TH1::FitPanel() menu…?

Cheers,
Rafael :slight_smile: