Is it possible to make the pitch of the Ox axis to a certain value to be small, and after - to large?
My situation: I build a histogram, where most of the data lie in a small interval [0-100], but there are some extreme values (1500,2000, etc.), so the Ox axis expands and I get merging high bars at the beginning, a large pass and very small bars in the region of extreme values. It is necessary that at first the columns were visible (for example, in increments of 5), and then the range [100-2000] was one column.
I use the plt.hist()
method.
Screen of current behavior for:
x = [1, 1, 1, 2, 2, 4, 4, 4, 5, 1000, 2000] bins = [1, 2, 4, 5, 1000, 2000]
bins
) - MaxUplt.hist(x, bins)
, where bins is a fixed number, x is all the data in the list - level