TPie SetAngel3D

Hello,

SetAngle3D doesn’t work for me in pyROOT. Or I misunderstood the meening but there is no documentation except of [1]

I want to reach just pie chart as a circle and not elipsoid. Part of my code [2]

Thanks, Tomas.

[1] root.cern.ch/root/html/TPie.htm … SetAngle3D.

[2]
#pyROOT:
gROOT.Reset()
gStyle.SetOptStat(0)
c1=TCanvas()
c1.SetFillColor(0)
c1.cd()
FirstProtPie=TPie(StorageService,StorageService,3)
for prot in FirstProtVal.keys():
FirstProtPie.SetEntryVal(pieEntries[prot],FirstProtVal[prot])
FirstProtPie.SetEntryLabel(pieEntries[prot],prot)
FirstProtPie.SetEntryFillColor(pieEntries[prot],pieColors[prot])
FirstProtPie.SetRadius(.3)
FirstProtPie.SetAngle3D(60.)
#FirstProtPie.SetAngularOffset(90.)
FirstProtPie.Draw(“nol <”)
c1.SaveAs(“plots/FirstProtPie”+"_"+StorageService+".eps")

This method allows to show the Pie Chart with some 3D effect. If, as you said, you just need a circle, simply don’t use it.

Well, also restricting the line with SetAngle3D doesn’t help. I have also tried SetCircle() method but still I see elipse.

Cheers, Tomas.

make sure the pad you draw the pie in has a square aspect ratio

Yes, you are correct. Thanks a lot.

c1=TCanvas(“c1”,“c1”,10,10,600,600)