I want to draw 7 or 8 Histogram (share x axis) dynamically in one figure using Python. But the figure only show part of it.
Although it has 7 subplots:
Here is my codes:
import matplotlib
import matplotlib.pyplot as plt
matplotlib.use('Agg')
import pickle
distribution = pickle.load(open("data.txt", "r"))
fig,axes = plt.subplots(nrows = len(distribution), sharex = True)
index=0
for tag in distribution_progress:
axes[index].hist(distribution_[tag],bins=50, normed=1, facecolor='yellowgreen', alpha=0.75)
axes[index].set_title(tag)
index += 1
plt. subplots_adjust( top = 3, hspace = 0.4)
plt.show()