Histogram not updating on mac

I am trying to plot a histogram as an animation using an interactive macro that updates the canvas every 100 events. The code runs fine on linux, but not on my mac laptop. I only get the canvas at the end, and I cannot see the intermediate updates. Does anyone know what I may need to do make this work on a mac? I am using ROOT 6.04/12.

Thanks a lot,
Ariel

On Mac with the Cocoa backend you need to do:

         gPad->Update();
         gSystem->ProcessEvents();

Thanks a lot! This solves the issue.
Best,
Ariel

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