The following happens, when I plot a histogram using matplotlib's hist function with horizontal orientation: Sometimes the bins with very low values, which are present at the default orientation, are not shown for the horizontal orientation.
Executing the following code in a notebook cell (sadly I cannot upload/should generate two histograms, where you can see the difference at most right/left bins of the distribution. For default there are small bins at ~3 and -3, which are not present for the horizontal orientation.
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(20)
y = np.random.normal(size=1000000)
plt.hist(y, bins=20)
plt.show()
plt.hist(y, bins=20, orientation='horizontal')
plt.show()
I also linked the plots here:
Does anybody have an idea what is the issue here?