Esquema del histograma de Python
He trazado un histograma en Jupyter (Python 2) y esperaba ver los contornos de mis barras, pero este no es el caso.
Estoy usando el siguiente código:
import matplotlib.pyplot as plt
from numpy.random import normal
gaussian_numbers = normal(size=1000)
plt.hist(gaussian_numbers)
plt.title("Gaussian Histogram")
plt.xlabel("Value")
plt.ylabel("Frequency")
plt.show()
28
1 answers
Parece Que su linewidth
se establece en cero o en su edgecolor
fue creado a 'none'
. Matplotlib cambió los valores predeterminados para estos en 2.0. Prueba a usar:
plt.hist(gaussian_numbers, edgecolor='black', linewidth=1.2)
54
Author: James,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-06-19 11:14:11
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-06-19 11:14:11