Here we have a TH1F with variable bin widths (0, 5, 10, 15, 20, 30, 40, 50, 70, 100, 200, 1500), but each bin is given the same width when the plot is drawn. How is this done?
Ok I see you got a plot already with what you are requesting ? isn’t it ?
Do you have the macro generating this plot ?
I guess (if it was generated with ROOT) the histograms plotted on top are normal ones with fixed bin size and the bottom axis was modified with ChangeLabel.
I don’t have the macro that generated this plot, I just saw it and wanted to replicate this style, but couldn’t figure out how it was done.
So the way to do this in ROOT is to sort of “fake it” by taking my original histogram and copying the bin values to a new histogram (where the bins may have the wrong x-values but are at least fixed width) and then changing the x-axis labels to fix the incorrect values? I see how that would work.
Is there no “proper” way to do this in the original histogram? If not I’ll try the above method.