Dear pyroot experts,
I want to draw some histograms with a python script.
What is strange is that sometimes it works and sometime not,
i.e. it will hang without drawing anything and I have to kill it by hand.
I guess because the draw method is inside a loop?
-------------------SNIP---------------------------for j in range(0,dim):
can.append(TCanvas("can%i"%(j),NameHist[j],1400,1000))
app = gApplication
can[j].Connect("Closed()", "TApplication", app, "Terminate()")
can[j].cd()
gPad.SetLogy()
hframe = gPad.DrawFrame(float(Xmin[j]),1e-6,float(Xmax[j]),1)
hframe.GetXaxis().SetTitleSize(0.04) hframe.GetXaxis().SetTitle(TitleHist[j]) hframe.GetYaxis().SetTitle("Normalised Counts [a.u.]") CORS[j].DrawNormalized("same") DATA[j].DrawNormalized("same") CORS[j].SetTitle(TitleHist[j])
leg.Draw("same")
can[j].Update() can[j].Modified() can[j].Print(dir+"/"+NameHist[j]+bdtcut+".png")
app.Run()
What is wrong? Any idea?
Thanks
A
--Received on Fri Jun 26 2009 - 17:36:50 CEST
-------------------------------------------------------
Alfio RIZZO Vrije Universiteit Brussel Faculteit Wetenschappen, Dienst ELEM Gebouw G, Bureau 0G-111 Pleinlaan, 2 B-1050 Brussels BELGIUM Tel. +32(0)26293220 Fax +32(0)26293816 alfio.rizzo_at_vub.ac.be w3.iihe.ac.be/~rizzo
-------------------------------------------------------
This archive was generated by hypermail 2.2.0 : Sat Jun 27 2009 - 05:50:03 CEST