I am taking the xy plane of a TH3D histogram by iterating through each bin on the plane and putting the contents into a TH2D respectively.
rootValXY=r.TH2D("xyPlane","xy plane",f.binN.x,f.minL.x,f.maxL.x,f.binN.y,f.minL.y,f.maxL.y)
for y in range(0,f.binN.y):
for x in range(0,f.binN.x):
binXY=f.histObj.GetBinContent(f.histObj.GetBin(x+1, y+1, f.binN.z/2))
rootValXY.SetBinContent(rootValXY.GetBin(x+1,y+1), binXY)
It seems like it disregards the formatting code. This formatting worked for TH2D which was a result of Project3D of TH3D which is essentially the same right?