Matplotlib Tutorial (Part 7): Scatter Plots

  Рет қаралды 183,376

Corey Schafer

Corey Schafer

Күн бұрын

Пікірлер: 122
@coreyms
@coreyms 5 жыл бұрын
I hope everyone finds this video helpful. The next video of the series will be posted tomorrow at the same time. The next video will cover how to plot time series data. I'd like to thank Brilliant for sponsoring this series. If you'd like to check them out then you can sign up with this link and get 20% off your premium subscription: brilliant.org/cms
@caiooliveira3818
@caiooliveira3818 5 жыл бұрын
It would be interesting to have a video about boxplots and outliers.
@Sabre00
@Sabre00 5 жыл бұрын
Just what I've been waiting for!!!!! Time series plots!!!!
@SHUBHITTALUSBIS
@SHUBHITTALUSBIS 5 жыл бұрын
So sir you will not tell when you will start with numpy and pandas?
@coreyms
@coreyms 5 жыл бұрын
I've already started working on those, but it takes a long time to complete a series. I'm currently going through a move, so it will be some time unless I get moved into my new place and get my office set up. It will likely be a month until I've made good progress on the numpy and pandas series.
@vivekjoshi722
@vivekjoshi722 3 жыл бұрын
@@coreyms i have search for numpy in a chaneel but there no vedios, when i expect numpy tutorials
@mehmetkazanc5855
@mehmetkazanc5855 4 жыл бұрын
One of the best Python instructor in the KZbin.. !!
@programmer4833
@programmer4833 4 жыл бұрын
the best
@LeonAlexGuitar
@LeonAlexGuitar 3 жыл бұрын
Thanks Corey, this was a great help for my thesis!
@sagarreddy7461
@sagarreddy7461 5 жыл бұрын
Great content Mr.corey. can you make series of tutorials on pandas n numpy modules. That will helpful for alot of people. Love n respect from INDIA..
@sanjj_1
@sanjj_1 4 жыл бұрын
Dude I cannot believe you offer this for free. I swear I will donate as soon as I am capable of it, this helps so much.
@dhananjaykansal8097
@dhananjaykansal8097 5 жыл бұрын
Lovelyyyyyy. Too good once more. You’re doing a very noble job sir. God Bless! Love from India....
@tanmayagarwal8513
@tanmayagarwal8513 4 жыл бұрын
One day I am sure your videos will also be in the list of Top trending video dataset that you have pulled out. Amazing explanation for each and everything! Thank you so much!
@bisratgetachew8373
@bisratgetachew8373 3 жыл бұрын
You are such a great teacher. I can not thank you enough. From Ethiopia 🇪🇹
@kopilkaiser8991
@kopilkaiser8991 Жыл бұрын
Your videos helped me to learn more than I had learnt on my actual classes on Data Science. You are absolutely an awesome teached and have the capability to teach ans convey difficult knowledge in an easy and helpful manner. Thank you so much for making these videos. I am going to continue learning by watching the rest of your videos on this series.
@akosasuke5128
@akosasuke5128 2 жыл бұрын
I've been binge-watching your videos for a while now, they are very rich and concise. It gives a beginner the right foundational introduction into data visualization. I'm glad I found your videos, I can't wait to see you work with more more sophisticated plots
@p3000g1
@p3000g1 2 жыл бұрын
Hands down the best Python tutorial series on the internet
@balabunat
@balabunat 5 жыл бұрын
One more useful video. For me, as for beginning data scientist, it's VERY useful! Thank you so much 👍
@HhhHhh-et5yk
@HhhHhh-et5yk 4 жыл бұрын
Soo true!☄
@smellymomo
@smellymomo 8 ай бұрын
Great video, Corey! I'm currently doing an Astronomy-related project which involves using a scatter plot, and this was a very helpful intro for that. Thanks.
@franciscorivas4036
@franciscorivas4036 4 жыл бұрын
Thank you Corey. You're such a great teacher. Greetings from Ecuador
@junealexissantos4341
@junealexissantos4341 3 жыл бұрын
Thank you so much sir. As a newbie, I find these videos so easy to understand. Thank you again. Hope you continue to make videos like this.
@tugrulpinar16
@tugrulpinar16 3 жыл бұрын
I'm here after finishing Corey's pandas tutorial. Thank you for these amazing series!
@jimothybikael
@jimothybikael 4 жыл бұрын
INSTANT SUB!!!! Tysm, my man. Exactly what I needed. Concise but thorough :)
@zane003
@zane003 Жыл бұрын
15:00 didn't expect old town road to show up here, totally makes sense
@itsjose666
@itsjose666 4 жыл бұрын
Watching these videos has been immensely helpful. Thank you very much for sharing your knowledge!
@rogerwilcoshirley2270
@rogerwilcoshirley2270 3 жыл бұрын
Thanks Corey, you do a great job with your videos, nothing identifiably spectacular, nonetheless effective and enjoyable.
@lalu225
@lalu225 5 жыл бұрын
Proper data analytics, great tutorial!
@allena794
@allena794 5 жыл бұрын
Thanks, Corey. I have learned a lot from your video.
@danielflorea3001
@danielflorea3001 3 жыл бұрын
Excellent content, simple explanations, really easy to follow. Great work
@anushag6906
@anushag6906 4 жыл бұрын
Great series, one more humble request - can you do a series on 3D plots.
@tymothylim6550
@tymothylim6550 3 жыл бұрын
Thank you Corey for this video! It was very well planned in the sense that it transitioned well from basic to more intermediate stuff (like cmap!)
@DominicNjoroge-y6n
@DominicNjoroge-y6n 10 ай бұрын
Thank you so much! Exactly what I needed.
@fredwooten14
@fredwooten14 5 жыл бұрын
Good stuff Corey appreciate the information!!!
@SomeGuyInSandy
@SomeGuyInSandy 5 жыл бұрын
Excellent series!
@cherngliu8803
@cherngliu8803 4 жыл бұрын
Thank you Schafer from Taiwan
@the-ghost-in-the-machine1108
@the-ghost-in-the-machine1108 Жыл бұрын
great work!
@gokulsreekumar4371
@gokulsreekumar4371 4 жыл бұрын
Gold Mine 👌
@sharvils4270
@sharvils4270 4 жыл бұрын
Old Town Road💖💖💖😂
@TerboBlitz
@TerboBlitz 5 жыл бұрын
Very clear. Well-done!
@gamingandtechexperto2003
@gamingandtechexperto2003 4 ай бұрын
please make seaborn tutorial too
@lt10offley
@lt10offley 2 жыл бұрын
Thanks to you dude. Ive managed to keep my hair on my head
@rickhehe
@rickhehe 3 жыл бұрын
I love that outlier:)
@youtubecommenter5122
@youtubecommenter5122 4 жыл бұрын
All the pointless to watch scatterplot videos for my KNN assignment question. Thank God for this video
@meysamsalehi7706
@meysamsalehi7706 3 жыл бұрын
Thank you. it was very useful for me.
@adityarathore9479
@adityarathore9479 4 жыл бұрын
You are a saviour man!
@wobius
@wobius 5 жыл бұрын
you could also look into the bokeh package. I think that would also make a great series, since it runs faster than matplotlib, but with a similar syntax
@coreyms
@coreyms 5 жыл бұрын
Yes, I'll be covering Bokeh in a future series
@wobius
@wobius 5 жыл бұрын
@@coreyms Thats great! Bokeh also has an easy interface for interactive plots, hovertools and capabilities to save html files, which are nice to present data as dashboard applications. Can't wait to see your series. :)
@k1mfor
@k1mfor 5 жыл бұрын
@@coreyms Please consider Plotly and/or Dash as well!
@maiarob2
@maiarob2 5 жыл бұрын
Thank you very much for the video!
@ironpolux
@ironpolux 3 жыл бұрын
Thanks for the vid :D. YT algo please love this guy
@budoray
@budoray 5 жыл бұрын
Nicely done. How about covering the plot_date() and including color gradients?
@thecatsister3040
@thecatsister3040 3 жыл бұрын
Thank you for this video.
@mcmormus
@mcmormus 4 жыл бұрын
Is there a way to invert cmap='summer' so that the ratio changes from red to green?
@FallinPython
@FallinPython 3 жыл бұрын
@mcmormus Yes, there is. You only need to add “_r” in the end of your chosen colormap. example: Using “jet” colormap cmap = “jet” cmap = “jet_r”
@RozanMhrzn
@RozanMhrzn 4 жыл бұрын
Thank you so much for the video !!!
@fun_facts168
@fun_facts168 3 жыл бұрын
Hello Corey, Thank you very much for this great series. Can you please tell me how slicing works in scatter plot?
@Sripooja.Mahavadi
@Sripooja.Mahavadi 5 жыл бұрын
Great video thanks a lot!!!
@roshanican504
@roshanican504 3 жыл бұрын
Thank you so much for everything
@nicholasmaloof8378
@nicholasmaloof8378 5 жыл бұрын
I know this has been posted a lot, but a pandas series (as well as some of the other popular data science libraries) would be awesome
@nicholasmaloof8378
@nicholasmaloof8378 5 жыл бұрын
Also - super excited for that KZbin API video :)
@jordancachiaras807
@jordancachiaras807 3 жыл бұрын
How would you plot the x y scatter as well as say a polynomial line that is the best fit line for the data points?
@sebbyteh9203
@sebbyteh9203 4 жыл бұрын
Please make a video on curve fitting and regression lines
@tomaszkoodziejczyk7730
@tomaszkoodziejczyk7730 5 жыл бұрын
Awesome series! Can we use Log scale for the colorbar as well?
@ahmedhassanahmedhassan6495
@ahmedhassanahmedhassan6495 5 жыл бұрын
thank you :)
@HiroshiT34
@HiroshiT34 3 жыл бұрын
These data show how self-reinforcing KZbin likely is. I am sure that both views and likes are factored into the algorithm. So once you start to get likes and views the algorithm will highlight you meaning you get more likes and views leading to a self-fulfilling prophecy. It is not that the video is higher quality or even more popular, but that KZbin makes the content so through reinforcement.
@abhinav9561
@abhinav9561 4 жыл бұрын
Thanks man!!
@lord_nn
@lord_nn 5 жыл бұрын
Thanks for the series. I really enjoyed all the videos. A question I have is what libraries would you use to allow user interactions.
@coreyms
@coreyms 5 жыл бұрын
A popular library for interactive plots is Bokeh. I'll be doing a series on that in the near future as well.
@mrdrbernd
@mrdrbernd 5 жыл бұрын
The series is great! - but one question: is it possible to color code the density of points in a certain area, e.g. more dense points/ same points appear darker than less dense points?
@ManishKumar-sw3cn
@ManishKumar-sw3cn 5 жыл бұрын
Thanks corey!! how to verify the plotted points are exactly plotted.
@omareldamsheety
@omareldamsheety 4 жыл бұрын
Thank you
@SuperLangz
@SuperLangz 5 жыл бұрын
Interesting outlier
@FabioWilliamOliveira
@FabioWilliamOliveira Жыл бұрын
It help me a lot
@TopicalAuthority
@TopicalAuthority 4 жыл бұрын
Maybe it is updated but when I use the start code, it says "'tuple' object is not callable".
@aqclaudio
@aqclaudio 5 жыл бұрын
How its possible set legend to my data at scatter plot? ie male and female are groups inside this graph visualization
@Tomandjerry-zk8pb
@Tomandjerry-zk8pb Ай бұрын
I like your video.
@namegoogle1877
@namegoogle1877 5 жыл бұрын
Hi Corey, how to set label to each point on scatter plot?
@meetpanchal4908
@meetpanchal4908 2 жыл бұрын
Query here !! been doing as you instructed but while plotting on Y-axis it's showing 1,2,3,4 rather then orignal value. How to resolve it
@babaabba9348
@babaabba9348 3 жыл бұрын
hi what if x has 2 attributes and y is the label how can i plot this please
@bikashacharaya47
@bikashacharaya47 4 жыл бұрын
while using plt.colorbar(), it return runtime error : No mappable was found to use for colorbar creation. First define a mappable such as an image (with imshow) or a contour set (with contourf).
@rasanbhangu
@rasanbhangu 4 жыл бұрын
Have you tried copy pasting, final code given by Corey on github?
@ambreeshkhurana1115
@ambreeshkhurana1115 5 жыл бұрын
First of all, very nice video. I just have a question. I want to plot contours on a scatterplot, let's say that include 70%,90%, and 95% of all the points. Is there a way to do that. I couldn't find anything. I will appreciate any help. Thanks
@PattyBreath
@PattyBreath 5 жыл бұрын
Thanks for this Corey, really useful series. Does anyone know how you can force the z axis (like/dislike ratio plotted by colour map) limits to be between 0 and 1?
@azizaza8287
@azizaza8287 4 жыл бұрын
you can do one thing , assume the highest ratio to be = 1 and lower ratio to be = zero and then use the map() function to map all the csv ratio values column cheers !
@HhhHhh-et5yk
@HhhHhh-et5yk 4 жыл бұрын
Using pandas , divide the ratio column by 100 and replace it to orginal dataframe. Then Change vmin =0 , vmax = 1 in plt.scatter(df.view_counts, df.likes, c = data.ratio , vmin ,vmax). Otherwise directly divide by 100 like shown below. Plt.scatter(df.view_counts, df.likes, df.ratio/100 , ...........) Cheers!♥️☄
@N1KLAZ96
@N1KLAZ96 5 жыл бұрын
Great Video! Can you tell me how I can display images instead of points in the plot?
@azizaza8287
@azizaza8287 4 жыл бұрын
using imshow() method for data with images instead of show() method
@timstark6744
@timstark6744 5 жыл бұрын
Thanks Corey, great videos! Looking forward to rest of the series! I'm trying to do something like Hans Rosling's video with plotting some data points over a 10 or 20 year period to perform analysis and to better visualize my data. I see a library called plotly_express but for now I'm just going to use a more organic approach with matplotlib. Question I have is are you planning on showing how to integrate control of the event attributes to make the data more interactive? I'm thinking of taking a scatter plot and then popping up attribute information when the cursor is over a data point (assume we use axes_enter/leave_event or figure_enter/leave_event)?? Pardon me if you already covered this as I just started watching yesterday and am kind catching up still. Other graph type I'm interested in is the bar_polar to display several key metrics for a company or project, to better visualize overall performance at a glance. I really think data analytics and data visualization is hot right now, and appreciate your timing with this video series. It would be great to see this series as a foundational component and then another intermediate or more advanced series to address a variety of use cases and how we could leverage these skills we are learning here, and tweak them slightly to create even greater visualizations or interactive data analysis tools.
@coreyms
@coreyms 5 жыл бұрын
Hey there. I'll be covering more interactive tools in the future, but not in this series. A popular library for that is Bokeh. I'll likely do a Bokeh series after the Pandas and Numpy series.
@interprimus1134
@interprimus1134 4 жыл бұрын
question, you import both matplotlib and pandas, but pandas already contains the matplotlib “inside”, how to use all methods matpotlib without it import using just pandas?) e.g. style thanks
@SoftwareEngineering226
@SoftwareEngineering226 Жыл бұрын
Data which you have used is not in the description
@therealrk
@therealrk 5 жыл бұрын
Please sir help me I am scrapping a web and there is JavaScript on it for infinite scrolling page and I need to scrape data using requests_html but render is not working Can you provide more tutorials on it
@anonymous_ghost_123
@anonymous_ghost_123 4 ай бұрын
Great...
@pinopino1385
@pinopino1385 Жыл бұрын
How can I plot two datasets within the same scatterplot? I don’t know how to define the y & x axis…
@george-one
@george-one 4 жыл бұрын
getting a value error on the data @corey schafer could you help me out here.
@SHUBHITTALUSBIS
@SHUBHITTALUSBIS 5 жыл бұрын
Video on boxplots?
@nandalal-dev6095
@nandalal-dev6095 4 жыл бұрын
one doubt on this video the data is about youtube trend's likes,viewcount and ratio then how did you get dislike ratio???
@ushnakhan198
@ushnakhan198 3 жыл бұрын
I have a project coming, so can anybody tell me where should I get data from? to manipulate, analyze and visualize like he got data of top trending youtube videos so where did he get from??
@davidrainder6620
@davidrainder6620 3 ай бұрын
gracias
@parthrawri3001
@parthrawri3001 4 жыл бұрын
Green is Corey’s favourite color.
@bhargav1811
@bhargav1811 3 жыл бұрын
How u get all this data corey? By the way your video are very nice!!!
@avg_user-dd2yb
@avg_user-dd2yb 3 жыл бұрын
Stackoverflow
@idrisaderinto9648
@idrisaderinto9648 4 жыл бұрын
the outlier rode till it couldn't no more
@fernandohood5542
@fernandohood5542 4 жыл бұрын
How would I do a scatter plot in real time?
@munish259272
@munish259272 3 жыл бұрын
00:02
@VictorCaldo
@VictorCaldo 5 жыл бұрын
cbar = plt.colorbar(orientation='horizontal') in case you want it to be horizontal
@danielalegriasallo5551
@danielalegriasallo5551 3 жыл бұрын
"I'm gonna take my horse to the old town road"
@smellypunks
@smellypunks 4 жыл бұрын
Would have been good to have seen one colour per series of data.
@jeffery_tang
@jeffery_tang 2 жыл бұрын
missed opportunity to make the like/dislike ratio colormap to be green to red
@dr-rer-nat-jonathan
@dr-rer-nat-jonathan 4 жыл бұрын
careful: correlation only models a linear relationship. The correlation may be zero even if the variables are stochastically dependent!!!
@simon_ammi
@simon_ammi 4 жыл бұрын
At this point in time, I'm trying to figure out how to plot a regression line on my scatter plot, anyone? Nice video though, thanks.
@sarbazkhurasani
@sarbazkhurasani 4 жыл бұрын
again same day (16 jun) but 1 year later :)) date: 16. 6 . 2020
@alenjose3903
@alenjose3903 4 жыл бұрын
3 months and 2 days from the same day as last year.
@Milo-f6t
@Milo-f6t 2 ай бұрын
No longer works!? Python is such a volatile mess...
@george-one
@george-one 4 жыл бұрын
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
@milleretguillaume9374
@milleretguillaume9374 5 жыл бұрын
this look like R shiny content
@alimovasati4470
@alimovasati4470 4 жыл бұрын
Honestly I am really disappointed you didn't talk about regression line!
@Arthurk346
@Arthurk346 4 жыл бұрын
watching this in 2020-05-31 aint that cool?..
Matplotlib Tutorial (Part 8): Plotting Time Series Data
17:09
Corey Schafer
Рет қаралды 188 М.
Matplotlib Tutorial (Part 6): Histograms
16:36
Corey Schafer
Рет қаралды 193 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
How I make beautiful GRAPHS and PLOTS using LaTeX
28:46
Dr. Trefor Bazett
Рет қаралды 486 М.
How to make scatter plot with trendline and stats in python
6:07
Karina Adcock
Рет қаралды 7 М.
15 POWERFUL Python Libraries You Should Be Using
22:31
ArjanCodes
Рет қаралды 67 М.
Seaborn Is The Easier Matplotlib
22:39
NeuralNine
Рет қаралды 183 М.
Matplotlib Tutorial (Part 1): Creating and Customizing Our First Plots
35:01
Matplotlib Tutorial (Part 10): Subplots
21:22
Corey Schafer
Рет қаралды 248 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 199 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19