Dear root experts,
I have a problem plotting multiple TH2F histos with COLZ option if number of plotted histograms is big. First I am filling histograms from TTree, then I set style and finally I draw them with SetBatch(true) followed by SaveAs. I receive information that PNG was saved and at the end of loop over histograms my macro terminates. Then I find 35/50 plots filled properly, one plot half rendered and the rest empty (only style, titles, etc. remain).
I assume SaveAs is too slow and program terminates before rendering is done. Is there any way I can force SaveAs to wait until it is finished? Why I get info about file successfully saved if this is not true? Any other tips (maybe parallelization of SaveAs, speeding up SaveAs).
Thank you!
Tomas
ROOT Version: 6.17/01