Matplotlib Tutorial 5 - Histograms

preview_player
Показать описание

Topics that are covered in this Video:
0:00 what is Histograms?
1:22 Plot histograms using hist() function
1:35 what is bins and buckets in histogram
2:30 rwidth parameters
3:58 API for hist() function
7:31 orientation property of Histograms

Next Video:

Populor Playlist:

Рекомендации по теме
Комментарии
Автор

Thank you so much for explaining bins concept in histogram.

abhishekfnu
Автор

nice tutorial. love to see new series in the next time

mindset
Автор

Hi Sir, nice learning video, I have a quick question, I would like to prepare a graph with x axis as timeline (lets say every hour ) and y axis - Some Job Name (A, B, etc), The start time and end time for each job should be represented in bars . (Assume like job monitoring). Lets say Job A started today 1'o clock and ended at 3'clock - The rectangular bar for Job A should be in parallel to x axis from 1 to 3 . Can you help on this?Thanks in Advance!

paetikela
Автор

Great video. You went straight to the point. Respect.

michaeltyomin
Автор

With due respect, I believe we should plot overlapping histograms rather than putting them side by side in one plot. This way we are compromising with the bin width for men and women data. For bin size 80-100, men data bin width is 80-90, and for women data, bin width is 90-100.

shiprachaudhary
Автор

Great videos really simple to understand. Would you make a video on Machine learning, Neural network, Support vector machine? Thank you so much.

flamboyantperson
Автор

Thank you so much. Excellent tutorial.

mostafamaslouhi
Автор

Thanks for video, this is so useful. And beautiful accent...

dabbey
Автор

This is confusing because though both sets share a range (say 80-100) the illustrations suggests that one set has values between 80 and 90 and the other set has values between 90 and 100. What would be useful is if the x axis is relabelled according to range e.g. 80-100 and both bars for each data set share that range. Can you remedy? ...

mafiosol_buenavida
Автор

nice, but how to incorporate standard deviation or standard error bars? kindly explain that also

DrSanjeevPandey
Автор

Hi, can you also show how to create mekko bar chart in python

prakashvishwakarma
Автор

Hi, Please provide some insight on the below-

Case 1 ---
When I do the below
n, bins, patches = ax[0].hist(data, 20, alpha=0.5)
I get count on y axis for values that are in corresponding bins on x axis.

Case 2 ---
Then I do the below
n, bins, patches = ax[1].hist(data, 20, density='true', alpha=0.5)

Case 3 ---
and then plot the best fit line-
mu, sigma = scipy.stats.norm.fit(data)
best_fit_line = scipy.stats.norm.pdf(bins, mu, sigma)
plt.plot(bins, best_fit_line)

In case 2 and 3, I get probability distribution on y axis.

I want to achieve case 2 and 3 together but I want Counts on y axis as the way they are shown in Case 1. How to do this?

girishsinghal
Автор

sir if I want to show the number of percentage how to do that
thanks for your videos

alipaloda
Автор

Can I get this dataset for my own trial?

alexmatea
Автор

I have a column of obj datatype. How to apply histogram plot to obj datatype column??

G_A
Автор

Hi, How to histogram using 2 variables on x axis using 2columns from csv file - kindly explain

vinodk
Автор

"Python is where it's at! You can do almost anything with it."

shawnoncall
Автор

sir where to use these matplotlib, how to know for the data to use which chart

ajiteshnakka
Автор

can We have green and yellow in Same bar ? mean we can do Men is dark green and women is light yellow ?

utpalkantkumar
Автор

how do i plot time in HH:MM:SS format in y-axis, let me take example of movie run time, on my x-axis there are movie name and y-axis i have movie run time

prashant