plt.subplots(figsize=(8, 5)) plt.hist(X[:, 0], bins=10) #10 bins is the default plt.xlabel("Feature at index 0") plt.title("Distribution of feature at index 0") plt.ylabel("Number of occurences") plt.show()