Hi ROOTers,
I’ve recently upgraded from ROOT 5.34.17 to 5.34.24 (running Fedora 20 Linux, clang++ 3.4.2) and encountered an issue when running codes I have developed that output a PNG file from a TCanvas running in batch mode. Using the following CINT code snippet:
{
C = new TCanvas("","",0,0,1000,500);
H = new TH1F("H","H",100,-5,5);
H->FillRandom("gaus",100);
H->Draw("");
C->Print("/tmp/tmp.png","png");
}
On 5.34.17, stdout gives
Info in <TCanvas::Print>: file /tmp/tmp.png has been created
and a PNG file is correctly produced.
On 5.34.24, there is no stdout output and no file is created. Curiously, changing the TCanvas::Print() command to
C->Print("/tmp/tmp.png","PNG")
will output an PS formatted file!
I couldn’t find any indication in the version changes that this was intentional, and there’s very little in the documentation on TCanvas in batch mode (i.e. no window).
Does anyone have any insight here? Perhaps I just missed something! Thanks very much!
~Zach