Matplotlib Histogram - How to Visualize Distributions in Python 7. Difference between a Histogram and a Bar Chart. A histogram is drawn on large arrays. It computes the frequency distribution on an array and makes a histogram out of it. On the other hand, a bar chart is used when you have both X and Y given and there are limited number of data points that can be shown as bars.