1
Ich benutze Python (3.4) Jupyter Notebook. Ich habe versucht, ein Histogramm mit Label unter Verwendung des folgenden Codes zu zeichnen.Python Matplotlib: Label in Histogramm
%matplotlib notebook
import matplotlib.pyplot as plt
import matplotlib
import numpy as np
bins = np.linspace(0, 1.0, 40)
plt.hist(good_tests, bins, alpha = 0.5, color = 'b' , label = 'good')
plt.show()
Aber das Etikett "gut" zeigt überhaupt nicht. Habe ich etwas vergessen? Vielen Dank!