I have a histogram with 521 bins, I tried using Rebin(x) but turns out that it only works if the number of bins is divisible by x, which means that if you have a prime number of bins, there can’t be any x that works.
How do I solve this?, is there a way to eliminate a few bins from a histogram?, just eliminating one would solve my problems
I think you can rebin your histogram. You will get a warning about “not an exact divider of nbins” and the last (up to “ngroup - 1”) bins will be neglected (the x-axis maximum will be adjusted accordingly).