How to set option "nbins" of TH2::ProjectionY()

Dear Experts

I wonder if there is an option for TH2::ProjectionY() to set the number of bins for each histograms? Sorry if I missed the answer in reference page…

Please read tips for efficient and successful posting and posting code

ROOT Version: 6.26.02
Platform: MacOS
Compiler: GCC

You cannot change the binning. You can only select the X axis range (from the firstxbin to the lastxbin included): TH2::ProjectionY

I saw there is such option of TH2::SetShowProjectionY(), is there a alternative way to binning the ProjectionY of TH2?

That’s not what it does: TH2::SetShowProjectionY

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.