Matplotlib Tutorial (Part 10): Subplots




[ad_1]

In this video, we will be learning how to use subplots in Matplotlib.

This video is sponsored by Brilliant. Go to https://brilliant.org/cms to sign up for free. Be one of the first 200 people to sign up with this link and get 20% off your premium subscription.

In this Python Programming video, we will be learning how to use subplots in Matplotlib. Subplots are used so that we can use Matplotlib in a more object-oriented manner. We will learn how to use subplots to plot data we have seen in previous videos, and then we will learn how to use subplots to create multiple plots on one or more figures. Let’s get started…

The code from this video (with added logging) can be found at:
http://bit.ly/Matplotlib-10

Unpacking Quick Tip – https://youtu.be/C-gEQdGVXbk?t=782

✅ Support My Channel Through Patreon:
https://www.patreon.com/coreyms

✅ Become a Channel Member:
https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join

✅ One-Time Contribution Through PayPal:
https://goo.gl/649HFY

✅ Cryptocurrency Donations:
Bitcoin Wallet – 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet – 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet – MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey’s Public Amazon Wishlist
http://a.co/inIyro1

✅ Equipment I Use and Books I Recommend:
https://www.amazon.com/shop/coreyschafer

▶️ You Can Find Me On:
My Website – http://coreyms.com/
My Second Channel – https://www.youtube.com/c/coreymschafer
Facebook – https://www.facebook.com/CoreyMSchafer
Twitter – https://twitter.com/CoreyMSchafer
Instagram – https://www.instagram.com/coreymschafer/

#Python #Matplotlib

Source


[ad_2]

Comment List

  • Corey Schafer
    November 13, 2020

    I hope everyone finds this video helpful. This is the last video in this series for the time being, but if you have any requests for topics that I have not yet covered then please leave a comment and I will try to add to this series in the future with popular requests.

    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:
    https://brilliant.org/cms

  • Corey Schafer
    November 13, 2020

    Request: 1st great tutorials. Can you do a piece on how to plot two rows of different scales? When one scale is much bigger than the other the smaller one just appears as a line. Also if you can do more than two (3,4,5..) of different scales please show how too. Regards, Marcus.

  • Corey Schafer
    November 13, 2020

    Just a little tip for the rest of the viewers: You can put the fig.savefig() line inside a loop and iterate through several charts. That way, you'll easily generate lots of related charts, ready to paste in a report.

  • Corey Schafer
    November 13, 2020

    Thanks man!!

  • Corey Schafer
    November 13, 2020

    I have watch all videos of the series. very clear and to-the-point explanation. Thanks so much for making this. best of luck for you!

  • Corey Schafer
    November 13, 2020

    Thank you, Corey!

  • Corey Schafer
    November 13, 2020

    Thank you very much Corey Schafer Sir. Nice work and great efforts. And very good style of explaining the codes. so that even new learners can understand.

  • Corey Schafer
    November 13, 2020

    Thank you so much for the tutorial! I was always confused about the fig, axis notion. It's clear now. Thank you!!!

  • Corey Schafer
    November 13, 2020

    Please is it possible to plot a large Excel data set in matplotlib? Thanks Corey for this great effort..

  • Corey Schafer
    November 13, 2020

    how to have one plot of the subplots spanning more than one axis,
    for example having 2*2 subplots and plot two figures in two normal axis and stretch the 3rd figure to span the two rest subplots

  • Corey Schafer
    November 13, 2020

    Thank u Today i completed this matplotlib tutorial

  • Corey Schafer
    November 13, 2020

    sir, when i run using ax then i got an error 'text' is not callable
    pls tell me someone

  • Corey Schafer
    November 13, 2020

    plt.title('Median Salary (USD) by Age')

    plt.xlabel('Ages')

    plt.ylabel('Median Salary (USD)')

    Sir, this run on window
    on this vdo i thought u forget 1st time but i was wrong ,u never wrong
    U r ideal for me sir Thanks alot for helping by our precious lecture
    Sir please tell me what i learnt after this so that i m good in data science
    I learn -python ,django,pandas, matplotlib from ur tutorial and i also learn matplotlib ,
    i got 5 star on hackerrank in statistics .
    pls suggest me sir
    pls pls pls reply me sir

  • Corey Schafer
    November 13, 2020

    thank you so much corey , you are a great teacher

  • Corey Schafer
    November 13, 2020

    You are a great teacher Corey. Thank you for your time and effort.

  • Corey Schafer
    November 13, 2020

    Thank you for the video. One suggestion, can you make a playlist for seaborn library? I think it is also useful along with matplotlib.

  • Corey Schafer
    November 13, 2020

    Okay so NGL I came to this tutorial from Google and it really helped, but I was just wondering how you got your graphs interactive? Mine appear as boring ol' images.

    Also – how do you adjust the size of the figures? I tried to set up fig1 as a plot and fig2 as a bar, and the bar graph is wider than the plot graph.

    If somebody could even point me to the right tutorial to watch to get what I need, that would be fine. Thanks!

  • Corey Schafer
    November 13, 2020

    You did it again. Just like pandas, this is the best matplotlib tutorial I have come across on YouTube. I don't even bother with other tutorials now, as long as you have covered it. Thanks a ton Corey.

  • Corey Schafer
    November 13, 2020

    thank you for making the series

  • Corey Schafer
    November 13, 2020

    Thank you

  • Corey Schafer
    November 13, 2020

    Thank you so much for recording these videos!! These are incredible!!
    I have one request, could you please make tutorials on visualizing 3D plots using this matplotlib/seaborn package?

  • Corey Schafer
    November 13, 2020

    Love the channel and this series has helped me so much to develop my aquarium controller that I have been working on. Just need to sort out the live data from my SQLite3 database for temperature reading. Hope you continue with you great work in teaching so many of us how to code.

  • Corey Schafer
    November 13, 2020

    This video is soo helpful…..and I am looking for how to draw a bar chart with two or 3 different columns at the same index on the x axis with different colors,,,,,Thank you

  • Corey Schafer
    November 13, 2020

    Thanks so much Corey! Really helpful series.

  • Corey Schafer
    November 13, 2020

    Amazing series, thank you and BRILLIANT.ORG)
    How about a bit of 3D plotting?

Write a comment