I am using Python (3.4) Jupyter Notebook. I have the following two histograms in two separated cells, each has their own figure:
bins = np.linspace(0, 1, 40)
plt.hist(list1, bins, alpha = 0.5, color = 'r')
and
bins = np.linspace(0, 1, 40)
plt.hist(list2, bins, alpha = 0.5, color = 'g')
Is it possible to put the above two histograms as two subplots side by side in one figure?