Matplotlib Histograms

One really good way to begin analyzing your data is by using matplotlib historgrams. The histogram splits your data into bins and then builds a bar chart that shows how many points are included in each range.

To build a histogram with matplotlib, first make sure you import matplotlib into your program using:

  • import matplotlib.pyplot as plt

Then you will need a simple list of data points. Create your chart with plt.hist(values) and show it with plt.show()

This chart demonstrates how your data is distributed.