Hi all, in TH3::Projection3D I found: ----------------------------------------------- //variable bin size axis not supported yet for 2-d projections case 4: xbins = fXaxis.GetXbins(); ybins = fYaxis.GetXbins(); if (xbins->fN == 0 && ybins->fN == 0) { h2 = new TH2D(name,title,ny,fYaxis.GetBinLowEdge(iymin),fYaxis.GetBinUpEdge(iymax) ,nx,fXaxis.GetBinLowEdge(ixmin),fXaxis.GetBinUpEdge(ixmax)); } else if (ybins->fN == 0) { h2 = new TH2D(name,title,ny,fYaxis.GetBinLowEdge(iymin),fYaxis.GetBinUpEdge(iymax) ,nx,&xbins->fArray[ixmin-1]); } else if (xbins->fN == 0) { h2 = new TH2D(name,title,ny,&ybins->fArray[iymin-1] ,nx,fXaxis.GetBinLowEdge(ixmin),fXaxis.GetBinUpEdge(ixmax)); } else { h2 = new TH2D(name,title,ny,&ybins->fArray[iymin-1],nx,&xbins->fArray[ixmin-1]); } break; ------------------------------------------------- >From the code I understand that projections with variable bin size should be supported, but the comment say that the variable bin size is not supported. If I try to make a 2D projection from a 3d hist with variable bin size I get a constant binning... why? Can this be fixed? Best regards, Thomas.
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:49 MET