Python Matplotlib

Matplotlib Histograms

Histogram plots

Matplotlib Histograms

A histogram is a graph showing frequency distributions. It is a graph showing the number of observations within each given interval.

Histogram

import matplotlib.pyplot as plt
import numpy as np

x = np.random.normal(170, 10, 250)

plt.hist(x)
plt.show()