- From Onuchin:
In batch, when a picture was saved in a binary file (gif for instance) from an image containing more than one pad, only the first pad was saved. The following macro demonstrates the problem: ccc2.gif was wrong compared to ccc1.gif. { gROOT->SetBatch(); TCanvas *c = new TCanvas; c->Divide(1,2); TH1F *h = new TH1F("gaus", "gaus", 100, -5, 5); h->FillRandom("gaus", 10000); c->cd(1); h->Draw(); c->cd(2); h->Draw("c*"); c->Print("ccc1.gif"); TImage *img = TImage::Create(); img->FromPad(c); img->WriteImage("ccc2.gif"); } git-svn-id: http://root.cern.ch/svn/root/trunk@22872 27541ba8-7e3a-0410-8455-c3a389f83636
Loading
Please register or sign in to comment