Intro to Data Visualization in Python with Matplotlib! (line graph, bar chart, title, labels, size)

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 182

  • @KeithGalli
    @KeithGalli  5 років тому +56

    Happy to be back! Video Timeline:
    0:24 - Video overview (note real-world examples moved to next video)
    1:43 - Setup
    2:23 - Our first line graph!
    4:50 - Add title and labels for x & y axis
    7:13 - Change font type, size, etc.
    9:02 - Change tick marks (scale graph)
    11:20 - Add a legend
    12:25 - Restyle our line (color, line style, markers, width)
    15:53 - Shorthand notation to restyle lines
    17:27 - List of line customization options
    17:55 - Plot more complex lines
    22:20 - Resize Graph
    24:48 - Save Graph
    26:00 - Annotating/Cleaning Code
    27:00 - Bar Chart
    31:25 - Final Comments
    If you enjoyed this video, make sure to like and subscribe! :)

    • @dkd8619
      @dkd8619 5 років тому

      Your videos are the best videos on python data science modules. I would like to thank you for helping people like me who wants to grow there career in python. Thanks again bro.

    • @alexyue1828
      @alexyue1828 4 роки тому

      Extremely beneficial for me and other, I guess. Million thanks and it will be great if you make all the tutorials series focused on different topics and provide detailed explanation of each step in the future.

    • @ayyfte
      @ayyfte 4 роки тому

      your video helped me a lot and it will also assist in my future career as a "Data Scientist" at Oracle!
      thank you!
      and what's that weird sound? here 26:43 ?

    • @robertoiglesias7910
      @robertoiglesias7910 2 роки тому

      25:02, almost died

  • @TSPxEclipse
    @TSPxEclipse Рік тому +5

    For those curious, you can use plt.annotate() to add the coordinates of markers to the graph.
    x = [your x coordinates list]
    y = [your y coordinates list]
    for i, j in zip(x, y):
    plt.annotate(f'({i}, {j})', (i, j), textcoords='offset points', xytext=(0, 5), ha='center')
    You can play around with the options, but this will add the coordinates centered slightly above the markers. If 5 seems too close, 10 is a better option.

  • @jenn6997
    @jenn6997 4 роки тому +60

    Congrats on finishing your degree, Keith!!! :) As a student who studies Education but would like to go into data analytics, your videos are super helpful and inspiring! By any chance, you could do more videos on how to build regression models in Python? :) Again, thanks for making these amazing tutorials!! :)

  • @fazlaynur4509
    @fazlaynur4509 3 роки тому +1

    Dude, I watch all your videos, you make videos very carefully, very instructive, thank you very much

  • @RishikavsAnnie
    @RishikavsAnnie 3 роки тому +14

    I am really grateful for your tutorial videos, you cover all the must-know topics, your explanations are easy to understand and watching you make mistakes sometimes makes me comfortable as someone who's learning.
    You could totally roll out your own courses or work as a UA-camr (or become a teacher) if you want to!

  • @Taran72
    @Taran72 4 роки тому +13

    A great way to teach. I like that you show how to look for information on the referenced source. Thank you for sharing and for making these very useful online classes. :)

  • @kvtr131
    @kvtr131 2 роки тому

    YOU ARE THE GUY ENCOURAGE AND SHARING YOUR KNOWLEDGE TO TO THE WORLD

  • @robertpinochet3591
    @robertpinochet3591 5 місяців тому

    this video is the perfect way to understand the library

  • @hendrik9989
    @hendrik9989 5 років тому +8

    Thank you Keith for the great video!
    This is helping my a lot for my bachelor thesis.

  • @azrmuradl6420
    @azrmuradl6420 2 роки тому +1

    You are becoming my favorite instructor. Keep it up, man!

  • @jiangxu3895
    @jiangxu3895 5 років тому +3

    Numpy-->Pandas, now I am watching Matplotlib, Thanks for you video.

    • @KeithGalli
      @KeithGalli  5 років тому

      Love it!!

    • @_matis_
      @_matis_ 4 роки тому

      hahaha,same order here...

  • @mohitjain4943
    @mohitjain4943 5 років тому +20

    Finally My boy is here

    • @KeithGalli
      @KeithGalli  5 років тому +2

      Sorry to be gone for so long!!!

  • @mahbleh404
    @mahbleh404 10 місяців тому

    man you are the best one so far i have seen. your tutorials are so helpful and easy to get your feet soaked into. thanks for existing

  • @oliviawu1293
    @oliviawu1293 3 роки тому +1

    Thank you so much! I am now trying to go through every single one of your videos in data science section and have learned a lot!

  • @gintarasantis5523
    @gintarasantis5523 4 роки тому +2

    I like your videos, Keith! Simple, practical, to the point. Good job!

  • @harshbhatt8252
    @harshbhatt8252 4 роки тому +1

    thanks keith for such an amazing video on matplotlib your content is very much structured and well taught the concept in very layman terms so even a non-techie can learn concept great video keep posting more

  • @phaedrus2633
    @phaedrus2633 4 роки тому +1

    Good videos Keith. Not draggy by any means.

  • @kristypolymath1359
    @kristypolymath1359 5 років тому +2

    I watched about 2/3 of your Pandas video, it's the visual stuff that I'm after, so I'll try this one.

  • @gianluigimarudut
    @gianluigimarudut 4 роки тому +2

    Thank you so much for making this, Keith

  • @ΔιονυσιοςΑσημακοπουλος-ζ2λ

    You are very helpful and enjoyable. In an easy way you provide a lot of stuff to get anyone start using the libraries from scratch to a stisfying degree.

  • @JohnUgochukwuIsuOmo
    @JohnUgochukwuIsuOmo Рік тому

    This video was very helpful. I had issues understanding matplotlib but I followed along and I better understood it. I also learnt how to read documentations and find what I want. Thank you.

  • @muzaianghanem5644
    @muzaianghanem5644 4 роки тому +2

    Thank you, I am happy I found these videos on the right time.

  • @nareshreddy6484
    @nareshreddy6484 4 роки тому +3

    Hey Keith u are amazing at making virtual lessons with an understandable concept and ur way of teaching is quite good. Hope u will make more vedios on all the programming languages

  • @piotrb5161
    @piotrb5161 5 років тому +5

    Welcome back Keith👍💪

  • @itskathan7940
    @itskathan7940 3 роки тому

    This guy made it look so easy!

  • @MrDaveaneo
    @MrDaveaneo 4 роки тому

    Knowledgeable and talented instructor.

  • @havehalkow
    @havehalkow 4 роки тому +4

    An idea for a tutorial might be making a 3D plot or surface with data collected through a Tkinter application. Great video, thank you)

  • @jorgeromero141
    @jorgeromero141 2 роки тому

    You are the best period.
    Hands Down

  • @zana3d
    @zana3d 3 роки тому

    Thank you so much for taking the time to teach us! That exit stage left was very dramatic....

  • @vitorribeirosa
    @vitorribeirosa 3 роки тому

    Thanks a lot...
    Good vibes and greetings from Japan

  • @mikitakamaru
    @mikitakamaru 4 роки тому +1

    Thank you for this great video!! This should be helpful for all beginners of matplotlib!!

  • @noeldoller2958
    @noeldoller2958 3 роки тому +1

    excellent tutorial Thumbs up to you Keith

  • @kylieying2
    @kylieying2 5 років тому +3

    Great video!!! Better than my MIT professors explain it :D

  • @MykytaStr
    @MykytaStr Рік тому

    Nice introduction to plotting, very useful

  • @hiovanycubillosgomez5901
    @hiovanycubillosgomez5901 3 роки тому

    that's great your to took time to do these video man, thank you so much.

  • @mohammedridouane7746
    @mohammedridouane7746 4 роки тому +2

    "if i did 'yel' which is not a color it's gonna yell at me"
    hahhahaaha made my day
    thanks for the tutorial

  • @haimkichik
    @haimkichik 3 роки тому

    It was my fisrt vid so nice too meet you after your Academia stuff. Thanks!

  • @alizareei4459
    @alizareei4459 4 роки тому +1

    it's very helpful & useful to me.
    thanks for your recording 💖

  • @harikrishna-harrypth
    @harikrishna-harrypth 4 роки тому

    Thanks a lot for your videos Keith, much appreciated!

  • @harshitsharma8131
    @harshitsharma8131 2 роки тому

    very helpful
    thanks keith

  • @blessinq5
    @blessinq5 Місяць тому

    Thank you very much for an amazing tutorial.

  • @jimmypoopap
    @jimmypoopap 4 роки тому +4

    26:43

  • @globallenz7558
    @globallenz7558 4 роки тому

    Thanks Keith. Keep up the great work!

  • @arashalizade9583
    @arashalizade9583 5 років тому

    Thank you Keith this video is really awesome!

  • @nicholasnjoku4778
    @nicholasnjoku4778 Рік тому

    Good start

  • @tkarthikeyanai
    @tkarthikeyanai Рік тому

    Nice brushup!

  • @somayehseifi8269
    @somayehseifi8269 4 роки тому

    I like the way you teach

  • @sunillamichhane2459
    @sunillamichhane2459 3 роки тому

    Greetings from Nepal ! Ur vids r superb, great help . Thank u 🙏

  • @bushrag.mohammed5877
    @bushrag.mohammed5877 4 роки тому

    Thanks Keith, you made my day 🌟

  • @korayalkankarakoc5238
    @korayalkankarakoc5238 Рік тому

    GOTCHU!! 8:34

  • @savinien44
    @savinien44 4 роки тому +1

    Thank you for the video. It's very helpful!

  • @loveyoutube22
    @loveyoutube22 5 років тому

    Thank you so much Keith for your videos. U make it easy to understand because u do not rush. Keep it up. U are doing a great good 🙏🙏👌👋👋

    • @finndevitt5117
      @finndevitt5117 4 роки тому

      sorry i have a question
      when i installing the package " plt" .
      That is displayed

      " ERROR: Could not find a version that satisfies the requirement plt (from versions: none)
      ERROR: No matching distribution found for plt
      "

      I need help :/ pls

  • @kewalchavan942
    @kewalchavan942 4 роки тому +2

    FLASH|||||||| 26:45

  • @dr.mohamedaitnouh4501
    @dr.mohamedaitnouh4501 Рік тому

    Nice intro easy to follow but one must do what it says not only listen ... I learned that we must put legend() to be able to see label =('') .... thank you

  • @DeltaPi314
    @DeltaPi314 3 роки тому

    The xticks and ytics didn't work on Jupyter notebook but worked on Pycharm.
    Jupyter: TypeError: 'list' object is not callable
    PyCharm: does what it is supposed to do.
    Sometimes it is the other way around.
    And the command lines were identical (Ctrl+C Ctrl+V). This is why I prefer R: Python is far to "capricious" to be anywhere near reliable.

  • @Mateusz-yp3wq
    @Mateusz-yp3wq 2 роки тому

    Very valuable content, thanks

  • @chrisintzes6239
    @chrisintzes6239 3 роки тому

    Nice work man!!

  • @yusuffarah5602
    @yusuffarah5602 4 роки тому

    Thanks Keith. Great videos!

  • @lakshyapratapsigh3518
    @lakshyapratapsigh3518 3 роки тому

    THANK YOU KEITH LOVE FROM INDIA

  • @ifiokudofe1368
    @ifiokudofe1368 2 роки тому

    thanks a lot, your videos has been very helpful

  • @chaudiep8274
    @chaudiep8274 Рік тому

    really like this video and your other video, thank you so much

  • @francinagoh2541
    @francinagoh2541 5 років тому

    Thanks for video to share your knowledge on python

  • @wheatonrecurrence9525
    @wheatonrecurrence9525 5 років тому

    Thanks Keith. Do more!

  • @rampedilesley9330
    @rampedilesley9330 3 роки тому

    Informative. Thank you so much.

  • @bdharani1620
    @bdharani1620 3 роки тому

    Sir your explanation so clear and I understand very easily please make more videos on python for freshers but I have a doubt how we are use some string,list ,set, dictionary methods in class , please make one video with above data types mothods please sir thank you for sharing this video

  • @rahulsinha1671
    @rahulsinha1671 2 роки тому +1

    Where were you when I was struggling with MATLAB subject in college? 😑😑

  • @topfundus1093
    @topfundus1093 3 роки тому

    Sehr gut! Vielen Dank und viele Grüße aus Deutschland!

  • @TOP--lb1rc
    @TOP--lb1rc 2 роки тому

    Very Helpful

  • @InteligenciadeNegocios
    @InteligenciadeNegocios 3 роки тому

    Thanks man, great video!

  • @netsurfer8923
    @netsurfer8923 4 роки тому

    Thank you and very helpful Video!

  • @rafael040204
    @rafael040204 3 роки тому

    Thank you so much for this!

  • @Chitie101
    @Chitie101 5 років тому

    Thank you for these, really helps!

  • @raiton3778
    @raiton3778 4 роки тому

    Thanks dude this helped a lot! Greetings from Switzerland :))

  • @murilosilvestre7736
    @murilosilvestre7736 3 роки тому

    That is supercool, thank you!

  • @pranav9339
    @pranav9339 Рік тому

    Everyone in comments be like he's the best and stuff. Phew.. what less did you guys even except from an MIT Computer Science Graduate.?!

  • @minnuzamir5458
    @minnuzamir5458 4 роки тому

    yes we need super duper coverage too

  • @manishdas6525
    @manishdas6525 5 років тому

    Informative & love it.

  • @usmannomani2647
    @usmannomani2647 4 роки тому +1

    I have csv data of one city which is I have been read in python using panda library now I want to extract specific area of that city How would I do this ? Which Library would I use for this purpose ?
    Csv City data contains (Lat & Long )

  • @nasser_omar
    @nasser_omar 4 роки тому

    Thanks a lot, bro.
    You are amazing. Thanks for your time, but could you make a tutorial about a real project, please, so that we can use all of the libraries that you taught us?

  • @kristypolymath1359
    @kristypolymath1359 5 років тому +1

    One thing that would help you in your videos is to remain consistent in your approach. In two of your videos I've watched now, you start out GREAT by explaining what it is that you're trying to do, and getting the viewer on board by making sure they can work alongside you. Invariably, though, half-way through your videos you go off trying this and that, with no explanation beforehand and no clear objective in mind, and instead end up working your way through your confusion and hoping the viewer is still watching the video.

  • @tobiasksr23
    @tobiasksr23 5 років тому

    Eres un grande, maestro.

  • @1UniverseGames
    @1UniverseGames 3 роки тому +1

    On that line graph, how can we use logo at the end of this line. Suppose if we want to use Facebook and Twitter logo, small size or even how can make a circle and write"FB" or Twitter like this at the end of each multiple line.

  • @maggietang1369
    @maggietang1369 4 роки тому

    Great job!

  • @fazlaynur4509
    @fazlaynur4509 3 роки тому

    Make educational videos, we are with you

  • @harilesnar9044
    @harilesnar9044 5 років тому

    Nice and simple 👌👍💥

  • @NewsToday196
    @NewsToday196 3 роки тому

    You don't need to save with code there is an option in the GUI of the graph to save it

  • @leolee2525
    @leolee2525 4 роки тому +1

    Hi Keith. Thanks a lot for this video. I got " invalid character in identifier" in Jupyther on the line "plt.title('Our First Graph',fontdict = {'fontname':'Comic Sans MS'})", any idea what's the problem?

  • @thesocialcow1631
    @thesocialcow1631 2 роки тому

    Anybody struggling with saving the graph and getting a blank image in the local folder
    Always remember to save the graph before show() because show() clears everything

  • @bapinchakraborty5329
    @bapinchakraborty5329 4 роки тому +1

    You are super awesome bro love yuh 👌👌👌👍👍

  • @jatinkumar4410
    @jatinkumar4410 3 роки тому

    Nice tutorial...

  • @dibyendumaitra7754
    @dibyendumaitra7754 4 роки тому +1

    Wanted to put the values for each Bar. How to do that.. looks like plt.text can help. But it's getting more complicated. solved, thanks

  • @Rainstorm121
    @Rainstorm121 4 роки тому

    Thanks Sir, any guidance on using matplotlib to plot trajectories?

  • @ousmanekaba8808
    @ousmanekaba8808 2 роки тому

    Thank you sir

  • @hectormotsepe1581
    @hectormotsepe1581 4 роки тому

    Thanks man.

  • @kasimshobak3281
    @kasimshobak3281 5 років тому

    Thank you!

  • @aaryan__bondekar9778
    @aaryan__bondekar9778 5 місяців тому +1

    8:34 👀

  • @riviera443
    @riviera443 4 роки тому

    Thanks

  • @horaciob7985
    @horaciob7985 4 роки тому

    nice job

  • @rverm1000
    @rverm1000 5 років тому

    very helpful

  • @jingwu1425
    @jingwu1425 4 роки тому

    Thanks Keith! Can you make a video showing how to draw a box with 10 rows and 10 columns, total 100 grids, and each grid contains a value from a file. Like a storage box.