Python Data Visualization Cookbook (Second Edition)
by Igor Milovanovic, Dimitry Foures, Giuseppe Vettigli
Making histograms
Histograms are simple; yet it's important to get the right data into them. We will cover histograms in 2D for now.
Histograms are used to visualize estimations of distribution of data. Generally, we use a few terms when speaking of histograms. Vertical rectangles represent frequencies of data points within a particular interval called a bin. Bins are created at fixed intervals, so the total area of a histogram sums to the number of data points.
Instead of using absolute values of data, histograms can display relative frequencies of data. When this is the case, the total area equals 1.
Histograms are often used in image manipulation software as a way to visualize image properties such as distribution of light in a particular color ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access