Histograms

Histograms visualize the distribution of numerical data. matplotlib has the handy hist() function that graphs histograms. The hist() function has two main arguments—the array containing the data and the number of bars.

Get NumPy : Beginner's Guide - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.