I have two data arrays for which I plot a histogram using pyplot:
data1 = numpyArray1
data2 = numpyArray2
They do not have the same size, so I use the option density=True
to compare them properly. I'm also letting pyplot select the bins automatically, as the data is float and I'm not (unless it's absolutely necessary) creating the limits automatically.
fig, ax = plt.subplots(....)
ax[...].hist([data1, data2], bins = 30, density = True, histtype='step)
Example:
Questions:
- Can I assume that the bins are exactly the same for both distributions?
- How can I see (or even better, get) the automatic bin limits that pyplot created? (This question assumes the bins are integer numbers, not valid for me)
- (optinal) Can I get the intersection point of the two curves somehow? (This question assumes gaussian distribution, which doesn't solve my problem)