Hi experts,
I am trying to make some TH3D. Yet as I have a quite specific axis from another histogram, cannot initialize the histogram with linear spacing. What I did is the following:
Now my problem is the following:
Somehow all my TH3D I initialize in this way have x- and y-Axis going from 0 to 1. I do not understand how this could be and what to change. Is this a bug or is there a workaround?
Note: I tried to initialize the x- and y-axis linear, but there seems to be no implementation for this combination.
Thanks,
Emil
Problem is here.
When you create histogram with linear scale: 4000 bins from 0 to 2000, such histogram does not have custom bins array in the axis object. Just check:
Thank you very much!
This explains the problem and makes a solution possible. Just in case someone in the future will experience the same problem:
You simply have to create a linear array with the following function: