See More

In this video, we'll learn how to plot a histogram using the matplotlib library in Python.<\/strong><\/span>

A histogram is a variation of a bar chart in which data values are grouped together and put into different classes. This grouping enables you to see how frequently data in each class occur in the dataset. <\/span>

To plot a histogram using matplotlib in python, we have to use the pyplot module of the matplotlib library. We have to invoke the pyplot.hist() function<\/strong> with the data points as the parameter. Finally, we can use pyplot.show<\/strong> to show the histogram plot.<\/span><\/p>

Plotting Histogram in Python using Matplotlib <\/span>
https:\/\/www.geeksforgeeks.org\/plotting-histogram-in-python-using-matplotlib\/<\/a><\/p>\",\"source\":\"https:\/\/videos.geeksforgeeks.org\/hls\/d73fb1cec20c813a68abe0bcb9beff9fgfg-Histogram20221006122401.m3u8\",\"category\":[{\"term_id__id\":10,\"term_id__term_name\":\"Python\",\"term_id__term_type\":1,\"term_id__slug\":\"python\"},{\"term_id__id\":291,\"term_id__term_name\":\"python-matplotlib\",\"term_id__term_type\":2,\"term_id__slug\":\"python-matplotlib\"},{\"term_id__id\":292,\"term_id__term_name\":\"Data Visualisation\",\"term_id__term_type\":1,\"term_id__slug\":\"data-visualisation\"}],\"meta\":{\"thumbnail\":\"https:\/\/media.geeksforgeeks.org\/geeksforgeeks\/HistogramChartinMatplotlib\/HistograminMatplotlib20221006123000-small.png\",\"largeThumbnail\":\"https:\/\/media.geeksforgeeks.org\/geeksforgeeks\/HistogramChartinMatplotlib\/HistograminMatplotlib20221006123000.jpg\",\"likes\":1,\"views\":17680,\"isFeatured\":0,\"isPremium\":0,\"isPublic\":0,\"format\":\"video\/mp4\",\"revision\":{}},\"time\":\"18\/10\/2022\",\"subtitle\":\"https:\/\/videos.geeksforgeeks.org\/subtitles\/Histogram20221006122401.vtt\",\"duration\":1599,\"course_link\":null,\"video_schema\":{\"@context\":\"https:\/\/schema.org\",\"@type\":\"VideoObject\",\"name\":\"Plotting Histogram Chart in Python using Matplotlib\",\"description\":\"In this video, well learn how to plot a histogram using the matplotlib library in Python.A histogram is a variation of a bar chart in which data values are grouped together and put into different classes. This grouping enables you to see how frequently data in each class occur in the dataset. nbspTo plot a histogram using matplotlib in python, we have to use the pyplot module of the matplotlib library. We have to invoke the pyplot.hist() function with the data points as the parameter. Finally, we can use pyplot.show to show the histogram plot.Plotting Histogram in Python using Matplotlib nbsphttpswww.geeksforgeeks.orgplotting-histogram-in-python-using-matplotlib\",\"thumbnailUrl\":[\"https:\/\/media.geeksforgeeks.org\/geeksforgeeks\/HistogramChartinMatplotlib\/HistograminMatplotlib20221006123000.jpg\",\"https:\/\/media.geeksforgeeks.org\/geeksforgeeks\/HistogramChartinMatplotlib\/HistograminMatplotlib20221006123000-seo.png\",\"https:\/\/media.geeksforgeeks.org\/geeksforgeeks\/HistogramChartinMatplotlib\/HistograminMatplotlib20221006123000-small.png\"],\"uploadDate\":\"2022-10-18T10:42:54Z\",\"duration\":\"PT0H26M39S\",\"contentUrl\":\"https:\/\/www.geeksforgeeks.org\/videos\/plotting-histogram-chart-in-python-using-matplotlib\/\"}}]"); Plotting Histogram in Python using Matplotlib - GeeksforGeeks