Matplotlib Tutorial (Part 7): Scatter Plots

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ธ.ค. 2024

ความคิดเห็น • 121

  • @coreyms
    @coreyms  5 ปีที่แล้ว +37

    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 ปีที่แล้ว +4

      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 ปีที่แล้ว +15

    One of the best Python instructor in the TH-cam.. !!

  • @bisratgetachew8373
    @bisratgetachew8373 2 ปีที่แล้ว

    You are such a great teacher. I can not thank you enough. From Ethiopia 🇪🇹

  • @sanjj_1
    @sanjj_1 4 ปีที่แล้ว +3

    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.

  • @LeonAlexGuitar
    @LeonAlexGuitar 3 ปีที่แล้ว +6

    Thanks Corey, this was a great help for my thesis!

  • @tanmayagarwal8513
    @tanmayagarwal8513 4 ปีที่แล้ว +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!

  • @dhananjaykansal8097
    @dhananjaykansal8097 5 ปีที่แล้ว +15

    Lovelyyyyyy. Too good once more. You’re doing a very noble job sir. God Bless! Love from India....

  • @sagarreddy7461
    @sagarreddy7461 5 ปีที่แล้ว +45

    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..

  • @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.

  • @balabunat
    @balabunat 5 ปีที่แล้ว +12

    One more useful video. For me, as for beginning data scientist, it's VERY useful! Thank you so much 👍

  • @franciscorivas4036
    @franciscorivas4036 4 ปีที่แล้ว +2

    Thank you Corey. You're such a great teacher. Greetings from Ecuador

  • @p3000g1
    @p3000g1 2 ปีที่แล้ว

    Hands down the best Python tutorial series on the internet

  • @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

  • @smellymomo
    @smellymomo 6 หลายเดือนก่อน

    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.

  • @junealexissantos4341
    @junealexissantos4341 3 ปีที่แล้ว +1

    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.

  • @jimothybikael
    @jimothybikael 4 ปีที่แล้ว +2

    INSTANT SUB!!!!
    Tysm, my man. Exactly what I needed. Concise but thorough :)

  • @lalu225
    @lalu225 5 ปีที่แล้ว +2

    Proper data analytics, great tutorial!

  • @danielflorea3001
    @danielflorea3001 3 ปีที่แล้ว

    Excellent content, simple explanations, really easy to follow. Great work

  • @allena794
    @allena794 5 ปีที่แล้ว +1

    Thanks, Corey. I have learned a lot from your video.

  • @tugrulpinar16
    @tugrulpinar16 3 ปีที่แล้ว

    I'm here after finishing Corey's pandas tutorial. Thank you for these amazing series!

  • @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.

  • @DominicNjoroge-y6n
    @DominicNjoroge-y6n 9 หลายเดือนก่อน

    Thank you so much! Exactly what I needed.

  • @SomeGuyInSandy
    @SomeGuyInSandy 5 ปีที่แล้ว +2

    Excellent series!

  • @fredwooten14
    @fredwooten14 5 ปีที่แล้ว +3

    Good stuff Corey appreciate the information!!!

  • @cherngliu8803
    @cherngliu8803 4 ปีที่แล้ว +1

    Thank you Schafer from Taiwan

  • @anushag6906
    @anushag6906 4 ปีที่แล้ว +4

    Great series, one more humble request - can you do a series on 3D plots.

  • @zane003
    @zane003 ปีที่แล้ว

    15:00 didn't expect old town road to show up here, totally makes sense

  • @TerboBlitz
    @TerboBlitz 5 ปีที่แล้ว +1

    Very clear. Well-done!

  • @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!)

  • @gokulsreekumar4371
    @gokulsreekumar4371 4 ปีที่แล้ว +2

    Gold Mine 👌

  • @the-ghost-in-the-machine1108
    @the-ghost-in-the-machine1108 ปีที่แล้ว +1

    great work!

  • @adityarathore9479
    @adityarathore9479 4 ปีที่แล้ว

    You are a saviour man!

  • @gamingandtechexperto2003
    @gamingandtechexperto2003 3 หลายเดือนก่อน +1

    please make seaborn tutorial too

  • @maiarob2
    @maiarob2 5 ปีที่แล้ว +1

    Thank you very much for the video!

  • @rickhehe
    @rickhehe 3 ปีที่แล้ว

    I love that outlier:)

  • @meysamsalehi7706
    @meysamsalehi7706 3 ปีที่แล้ว

    Thank you. it was very useful for me.

  • @thecatsister3040
    @thecatsister3040 3 ปีที่แล้ว

    Thank you for this video.

  • @RozanMhrzn
    @RozanMhrzn 3 ปีที่แล้ว

    Thank you so much for the video !!!

  • @wobius
    @wobius 5 ปีที่แล้ว +2

    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 ปีที่แล้ว +3

      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!

  • @Sripooja.Mahavadi
    @Sripooja.Mahavadi 5 ปีที่แล้ว +1

    Great video thanks a lot!!!

  • @roshanican504
    @roshanican504 3 ปีที่แล้ว

    Thank you so much for everything

  • @lewistaylor4620
    @lewistaylor4620 2 ปีที่แล้ว

    Thanks to you dude. Ive managed to keep my hair on my head

  • @budoray
    @budoray 5 ปีที่แล้ว +1

    Nicely done. How about covering the plot_date() and including color gradients?

  • @nicholasmaloof8378
    @nicholasmaloof8378 5 ปีที่แล้ว +2

    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 ปีที่แล้ว +1

      Also - super excited for that TH-cam API video :)

  • @youtubecommenter5122
    @youtubecommenter5122 4 ปีที่แล้ว

    All the pointless to watch scatterplot videos for my KNN assignment question. Thank God for this video

  • @abhinav9561
    @abhinav9561 4 ปีที่แล้ว

    Thanks man!!

  • @sharvils4270
    @sharvils4270 4 ปีที่แล้ว +1

    Old Town Road💖💖💖😂

  • @ahmedhassanahmedhassan6495
    @ahmedhassanahmedhassan6495 5 ปีที่แล้ว +3

    thank you :)

  • @ironpolux
    @ironpolux 3 ปีที่แล้ว

    Thanks for the vid :D. YT algo please love this guy

  • @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?

  • @tehyonglip9203
    @tehyonglip9203 3 ปีที่แล้ว

    Please make a video on curve fitting and regression lines

  • @tomaszkoodziejczyk7730
    @tomaszkoodziejczyk7730 5 ปีที่แล้ว +1

    Awesome series! Can we use Log scale for the colorbar as well?

  • @mcmormus
    @mcmormus 3 ปีที่แล้ว +2

    Is there a way to invert cmap='summer' so that the ratio changes from red to green?

    • @FallinPython
      @FallinPython 3 ปีที่แล้ว +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”

  • @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.

  • @omareldamsheety
    @omareldamsheety 4 ปีที่แล้ว +1

    Thank you

  • @ManishKumar-sw3cn
    @ManishKumar-sw3cn 5 ปีที่แล้ว

    Thanks corey!! how to verify the plotted points are exactly plotted.

  • @HiroshiT34
    @HiroshiT34 3 ปีที่แล้ว

    These data show how self-reinforcing TH-cam 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 TH-cam makes the content so through reinforcement.

  • @FabioWilliamOliveira
    @FabioWilliamOliveira ปีที่แล้ว

    It help me a lot

  • @SuperLangz
    @SuperLangz 5 ปีที่แล้ว +1

    Interesting outlier

  • @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?

  • @anonymous_ghost_123
    @anonymous_ghost_123 3 หลายเดือนก่อน

    Great...

  • @TopicalAuthority
    @TopicalAuthority 4 ปีที่แล้ว

    Maybe it is updated but when I use the start code, it says "'tuple' object is not callable".

  • @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?

  • @davidrainder6620
    @davidrainder6620 หลายเดือนก่อน

    gracias

  • @N1KLAZ96
    @N1KLAZ96 4 ปีที่แล้ว

    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

  • @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?

  • @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 ปีที่แล้ว +1

      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.

  • @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

  • @namegoogle1877
    @namegoogle1877 5 ปีที่แล้ว

    Hi Corey, how to set label to each point on scatter plot?

  • @parthrawri3001
    @parthrawri3001 4 ปีที่แล้ว

    Green is Corey’s favourite color.

  • @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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      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!♥️☄

  • @SoftwareEngineering226
    @SoftwareEngineering226 ปีที่แล้ว

    Data which you have used is not in the description

  • @babaabba9348
    @babaabba9348 3 ปีที่แล้ว

    hi what if x has 2 attributes and y is the label how can i plot this please

  • @aqclaudio
    @aqclaudio 5 ปีที่แล้ว

    How its possible set legend to my data at scatter plot? ie male and female are groups inside this graph visualization

  • @pinopino1385
    @pinopino1385 ปีที่แล้ว

    How can I plot two datasets within the same scatterplot? I don’t know how to define the y & x axis…

  • @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??

  • @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

  • @idrisaderinto9648
    @idrisaderinto9648 4 ปีที่แล้ว +1

    the outlier rode till it couldn't no more

  • @bhargav1811
    @bhargav1811 3 ปีที่แล้ว

    How u get all this data corey? By the way your video are very nice!!!

  • @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

  • @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???

  • @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

  • @fernandohood5542
    @fernandohood5542 4 ปีที่แล้ว

    How would I do a scatter plot in real time?

  • @SHUBHITTALUSBIS
    @SHUBHITTALUSBIS 5 ปีที่แล้ว

    Video on boxplots?

  • @george-one
    @george-one 4 ปีที่แล้ว

    getting a value error on the data @corey schafer could you help me out here.

  • @VictorCaldo
    @VictorCaldo 5 ปีที่แล้ว +1

    cbar = plt.colorbar(orientation='horizontal') in case you want it to be horizontal

  • @jonathanstudentkit
    @jonathanstudentkit 4 ปีที่แล้ว

    careful: correlation only models a linear relationship. The correlation may be zero even if the variables are stochastically dependent!!!

  • @smellypunks
    @smellypunks 4 ปีที่แล้ว

    Would have been good to have seen one colour per series of data.

  • @sarbazkhurasani
    @sarbazkhurasani 4 ปีที่แล้ว

    again same day (16 jun) but 1 year later :))
    date: 16. 6 . 2020

    • @alenjose3903
      @alenjose3903 4 ปีที่แล้ว +1

      3 months and 2 days from the same day as last year.

  • @jeffery_tang
    @jeffery_tang 2 ปีที่แล้ว

    missed opportunity to make the like/dislike ratio colormap to be green to red

  • @danielalegriasallo5551
    @danielalegriasallo5551 3 ปีที่แล้ว

    "I'm gonna take my horse to the old town road"

  • @simon_ammi
    @simon_ammi 3 ปีที่แล้ว

    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.

  • @munish259272
    @munish259272 3 ปีที่แล้ว

    00:02

  • @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().

  • @Milo-f6t
    @Milo-f6t หลายเดือนก่อน

    No longer works!? Python is such a volatile mess...

  • @milleretguillaume9374
    @milleretguillaume9374 4 ปีที่แล้ว +1

    this look like R shiny content

  • @alimovasati4470
    @alimovasati4470 4 ปีที่แล้ว

    Honestly I am really disappointed you didn't talk about regression line!

  • @Arthurk346
    @Arthurk346 4 ปีที่แล้ว +1

    watching this in 2020-05-31 aint that cool?..

  • @AhmedSharaf800
    @AhmedSharaf800 2 ปีที่แล้ว

    Anyone that got this warning
    "MatplotlibDeprecationWarning: Auto-removal of grids by pcolor() and pcolormesh() is deprecated since 3.5 and will be removed two minor releases later; please call grid(False) first."
    Use
    plt.rcParams['axes.grid'] = False