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

Поделиться
HTML-код
  • Опубликовано: 3 фев 2025

Комментарии • 183

  • @KeithGalli
    @KeithGalli  5 лет назад +58

    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

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

  • @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 RUclipsr (or become a teacher) if you want to!

  • @mahbleh404
    @mahbleh404 Год назад

    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

  • @fazlaynur4509
    @fazlaynur4509 3 года назад +1

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

  • @TSPxEclipse
    @TSPxEclipse Год назад +6

    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.

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

  • @JohnUgochukwuIsuOmo
    @JohnUgochukwuIsuOmo Год назад +1

    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.

  • @azrmuradl6420
    @azrmuradl6420 2 года назад +1

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

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

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

  • @hendrik9989
    @hendrik9989 5 лет назад +8

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

  • @kvtr131
    @kvtr131 2 года назад

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

  • @gintarasantis5523
    @gintarasantis5523 4 года назад +2

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

  • @ΔιονυσιοςΑσημακοπουλος-ζ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.

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

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

  • @muzaianghanem5644
    @muzaianghanem5644 4 года назад +2

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

  • @robertpinochetg
    @robertpinochetg 7 месяцев назад

    this video is the perfect way to understand the library

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

  • @phaedrus2633
    @phaedrus2633 4 года назад +1

    Good videos Keith. Not draggy by any means.

  • @gianluigimarudut
    @gianluigimarudut 4 года назад +2

    Thank you so much for making this, Keith

  • @zana3d
    @zana3d 3 года назад

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

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

  • @hiovanycubillosgomez5901
    @hiovanycubillosgomez5901 3 года назад

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

  • @vitorribeirosa
    @vitorribeirosa 3 года назад

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

  • @noeldoller2958
    @noeldoller2958 3 года назад +1

    excellent tutorial Thumbs up to you Keith

  • @mohitjain4943
    @mohitjain4943 5 лет назад +20

    Finally My boy is here

    • @KeithGalli
      @KeithGalli  5 лет назад +2

      Sorry to be gone for so long!!!

  • @mikitakamaru
    @mikitakamaru 5 лет назад +1

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

  • @itskathan7940
    @itskathan7940 3 года назад

    This guy made it look so easy!

  • @MykytaStr
    @MykytaStr Год назад

    Nice introduction to plotting, very useful

  • @haimkichik
    @haimkichik 4 года назад

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

  • @MrDaveaneo
    @MrDaveaneo 5 лет назад

    Knowledgeable and talented instructor.

  • @sunillamichhane2459
    @sunillamichhane2459 3 года назад

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

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

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

  • @kylieying2
    @kylieying2 5 лет назад +3

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

  • @piotrb5161
    @piotrb5161 5 лет назад +5

    Welcome back Keith👍💪

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

  • @blessinq5
    @blessinq5 3 месяца назад

    Thank you very much for an amazing tutorial.

  • @alizr8
    @alizr8 5 лет назад +1

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

  • @tkarthikeyanai
    @tkarthikeyanai Год назад

    Nice brushup!

  • @chaudiep8274
    @chaudiep8274 2 года назад

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

  • @harikrishna-harrypth
    @harikrishna-harrypth 4 года назад

    Thanks a lot for your videos Keith, much appreciated!

  • @jorgeromero141
    @jorgeromero141 3 года назад

    You are the best period.
    Hands Down

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

  • @ifiokudofe1368
    @ifiokudofe1368 2 года назад

    thanks a lot, your videos has been very helpful

  • @kewalchavan942
    @kewalchavan942 4 года назад +2

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

  • @harshitsharma8131
    @harshitsharma8131 2 года назад

    very helpful
    thanks keith

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

  • @nicholasnjoku4778
    @nicholasnjoku4778 Год назад

    Good start

  • @somayehseifi8269
    @somayehseifi8269 4 года назад

    I like the way you teach

  • @rampedilesley9330
    @rampedilesley9330 3 года назад

    Informative. Thank you so much.

  • @topfundus1093
    @topfundus1093 3 года назад

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

  • @jimmypoopap
    @jimmypoopap 4 года назад +4

    26:43

  • @Mateusz-yp3wq
    @Mateusz-yp3wq 2 года назад

    Very valuable content, thanks

  • @korayalkankarakoc5238
    @korayalkankarakoc5238 Год назад

    GOTCHU!! 8:34

  • @savinien44
    @savinien44 5 лет назад +1

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

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

  • @lakshyapratapsigh3518
    @lakshyapratapsigh3518 3 года назад

    THANK YOU KEITH LOVE FROM INDIA

  • @chrisintzes6239
    @chrisintzes6239 3 года назад

    Nice work man!!

  • @francinagoh2541
    @francinagoh2541 5 лет назад

    Thanks for video to share your knowledge on python

  • @globallenz7558
    @globallenz7558 4 года назад

    Thanks Keith. Keep up the great work!

  • @arashalizade9583
    @arashalizade9583 5 лет назад

    Thank you Keith this video is really awesome!

  • @murilosilvestre7736
    @murilosilvestre7736 3 года назад

    That is supercool, thank you!

  • @wheatonrecurrence9525
    @wheatonrecurrence9525 5 лет назад

    Thanks Keith. Do more!

  • @InteligenciadeNegocios
    @InteligenciadeNegocios 4 года назад

    Thanks man, great video!

  • @TOP--lb1rc
    @TOP--lb1rc 2 года назад

    Very Helpful

  • @NewsToday196
    @NewsToday196 4 года назад

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

  • @yusuffarah5602
    @yusuffarah5602 4 года назад

    Thanks Keith. Great videos!

  • @netsurfer8923
    @netsurfer8923 4 года назад

    Thank you and very helpful Video!

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

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

  • @bushrag.mohammed5877
    @bushrag.mohammed5877 4 года назад

    Thanks Keith, you made my day 🌟

  • @bapinchakraborty5329
    @bapinchakraborty5329 4 года назад +1

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

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

  • @rafael040204
    @rafael040204 3 года назад

    Thank you so much for this!

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

  • @1UniverseGames
    @1UniverseGames 4 года назад +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.

  • @deepanshuverma1215
    @deepanshuverma1215 3 года назад

    Sir, please make more tutorials related to Projects on Data Science

  • @rahulsinha1671
    @rahulsinha1671 3 года назад +1

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

  • @michaelabugri-attan5845
    @michaelabugri-attan5845 2 года назад

    Thank you
    But can you plot an ogive or cumulative frequency curve using matplotlib???

  • @jatinkumar4410
    @jatinkumar4410 3 года назад

    Nice tutorial...

  • @Rainstorm121
    @Rainstorm121 4 года назад

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

  • @ousmanekaba8808
    @ousmanekaba8808 2 года назад

    Thank you sir

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

  • @raiton3778
    @raiton3778 5 лет назад

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

  • @Sabertooth93
    @Sabertooth93 4 года назад

    As we have already declared x and y in the beginning , then why didn't we pass x and y instead of list in xticks and yticks ?

    • @alenjose3903
      @alenjose3903 4 года назад

      you can do that too, hes just using them to change the range if needed

  • @minnuzamir5458
    @minnuzamir5458 4 года назад

    yes we need super duper coverage too

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

  • @prince-yk1vr
    @prince-yk1vr Год назад

    hello kindly may I get the matplotlib link . the one here doesnt work

  • @aminuhamisu2029
    @aminuhamisu2029 2 года назад

    hello i installed pyautogui but still is not displying graph please what could the problem

  • @horaciob7985
    @horaciob7985 4 года назад

    nice job

  • @Tech-du2bg
    @Tech-du2bg 2 года назад

    Very helpful video. I tried the same process on my exercise but stacked where they said x and y must have same first dimension, but have shapes (30, 30) and (1,). I checked my x and y find they have the same dimension but I am not sure about z because it has 3D data. How can I solve it?

  • @Zielu13
    @Zielu13 3 года назад

    Thanks. Do you know how to change the background color in dataframe.plot graphs ( the background on which there are: labels and graph name). In subplots you can use 'facecolor' param, but it doesn't work in plots generated from multiindex dataframes.

  • @harilesnar9044
    @harilesnar9044 5 лет назад

    Nice and simple 👌👍💥

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

  • @graceteo8296
    @graceteo8296 4 года назад +1

    Hi. Can we create a project timeline using pandas? Thanks

  • @riviera443
    @riviera443 4 года назад

    Thanks

  • @Chitie101
    @Chitie101 5 лет назад

    Thank you for these, really helps!