Canvas not displayed while executing the macro hsum.C on MacOS

ROOT Version: 6.14/04
Platform: MacOS High Sierra 10.13.6 OsX 10.13
Compiler: clang91

I would like to draw an histogram while it is filling up as it is done in the tutorial hist/hsum.C
However while this is working on linux, it is not on macOS, as the Canvas is only displayed when the macro ends.
Is there any possible solution to this?

By the way, can you suggest me the best way to slow down the filling, which is too fast? (to be sure that the Canvas was not displayed I have added an interrupt in the macro, requesting some dummy user input)


After each c1->Update(); add one or two calls: gSystem->ProcessEvents();

After this fix it works nicely!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.