python matplotlib: label no histograma
Estou usando o Python (3.4) Jupyter Notebook. Tentei plotar um histograma com etiqueta usando o código abaixo.
%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()
Mas o rótulo 'bom' não aparece. Eu perdi alguma coisa? Obrigado!