Matplotlib Crash Course


[ad_1]

Learn the fundamentals of Matplotlib on this crash course tutorial. Matplotlib is a tremendous information visualization library for Python. You will even discover ways to apply Matplotlib to real-world issues.

✏️ This course was created by Keith Galli. Check out his YouTube channel: https://www.youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw

πŸ”— Source Code: https://github.com/KeithGalli/matplotlib_tutorial/
πŸ”— Matplotlib Pyplot Documentation: https://matplotlib.org/api/_as_gen/matplotlib.pyplot.html
πŸ”— Font List: http://jonathansoma.com/lede/data-studio/matplotlib/list-all-fonts-available-in-matplotlib-plus-samples/
πŸ”— Matplotlib Style Options: https://matplotlib.org/3.1.0/gallery/style_sheets/style_sheets_reference.html
πŸ”— Kaggle Data Link: https://www.kaggle.com/karangadiya/fifa19

Install libraries Needed for this video:
Option 1:
Open up a terminal window and sort
pip set up matplotlib
pip set up numpy
pip set up pandas

Option 2:
Download anaconda which is able to comprise all of the packages we’d like. A video on how to do that is right here: https://youtu.be/YJC6ldI3hWk

Learn to code at no cost and get a developer job: https://www.freecodecamp.org

Read a whole bunch of articles on programming: https://freecodecamp.org/information

And subscribe for brand new movies on expertise day by day: https://youtube.com/subscription_center?add_user=freecodecamp

supply
[ad_2]

Comment List

  • freeCodeCamp.org
    November 10, 2020

    Hope you all enjoyed! For more data science videos (pandas, sklearn, etc) feel free to check out my channel!

    Thank you freeCodeCamp for sharing this video 😊

  • freeCodeCamp.org
    November 10, 2020

    Hi, sorry to be a pain, but when I try to import Matplotlib, it gives me an error, DLL load failed while importing ft2font
    Can someone pls help me.
    Edit: is there any fix?

  • freeCodeCamp.org
    November 10, 2020

    Thanks a lot

  • freeCodeCamp.org
    November 10, 2020

    26:30, let one rip eh?

  • freeCodeCamp.org
    November 10, 2020

    More MatPlotLib courses!

  • freeCodeCamp.org
    November 10, 2020

    If you were to read a binary file containing sample points,
    file = open("sample.bin", "rb")

    How could you import the data into an array, for plotting? For example, assuming you prompt the user for filename, the number of bytes per data, and the endiness.. i.e. the first byte is the MSB or LSB… how would you load/plot the array, data value on the y, and sample number on the x?

  • freeCodeCamp.org
    November 10, 2020

    I have a question please … Do I need to learn numpy or pandas before I can start freelancing with matplotlib ?

  • freeCodeCamp.org
    November 10, 2020

    Hi,
    Can you tell me how you labelled Countries in Line Graph of Gas_Prices cause, you just used plt.legend() and that did the job. But that's not happening when I'm trying it

  • freeCodeCamp.org
    November 10, 2020

    Please make a video on matplotlib animations…

  • freeCodeCamp.org
    November 10, 2020

    Great teacher you are man. I have watched all your data visualization videos they all are amazing…

  • freeCodeCamp.org
    November 10, 2020

    My takeaways:
    1. Line chart 2:11
    1.1 Potting a line chart using plot and show 3:27
    1.2 Adding a title using title 5:21
    1.3 Adding labels to x and y axes using xlabel and ylabel 6:24
    1.4 Changing the font of title and labels. Resizing title and labels using fontdict 7:02
    1.4 Editing tick marks using xticks and yticks 8:50
    1.5 Adding a legend using legend 11:04
    1.6 Changing line style by passing parameters to plot 12:14
    1.7 Adding a 2nd line 17:33
    1.8 Resizing a chart using figure(figsize(), dpi=) 21:55
    1.9 Saving a chart using savefig 24:34
    2. Bar chart 26:48
    2.1 Potting a bar chart using bar and show 27:40. The size of a bar chart can be changed using figure(figsize(), dpi=) as well
    2.2 Setting bar patterns using set_hatch 28:50
    3. Real world Matplotlib examples 31:10
    3.1 Example 1 – line chart 34:36. Input .csv data file using pandas pd.read_csv()
    3.2 Example 2 – histogram 52:35. Potting a histogram using hist and show . Setting bins.
    3.3 Example 3 – pie chart 1:00:08. Potting a pie chart using pie and show . Looking for a condition in the data using pandas loc . Adding labels for pie chart using a list. Changing colour. Show percentage using autopct
    3.4 Example 4 – another pie chart 1:07:20. Converting string data to integer data using strip . Changing the pie chart style using style.use . Using pctdistance to define the positions of percentage. Using explode to split the pie chart.
    3.5 Example 5 – box plot 1:18:33. Potting a box plot using boxplot and show . Using set to set colour and linewidth

  • freeCodeCamp.org
    November 10, 2020

    Is matplotlib an engineering programm cause am studying electrical engineering though ……?????

  • freeCodeCamp.org
    November 10, 2020

    If you want to strip 'lbs' from a DataFrame, pandas does through the .str methods.

    The correct code should be: fifa['Weight'] = fifa['Weight'].str.strip('lbs')

  • freeCodeCamp.org
    November 10, 2020

    you type very fast

  • freeCodeCamp.org
    November 10, 2020

    please help me thanks

  • freeCodeCamp.org
    November 10, 2020

    Peace to all, at the moment I am making a web-based item lending form, which I want to ask how is it so that when inputing time is not conflicting, for example: If person A enters the form "will" borrow goods from 02:0003:00 , then person B cannot input the loan form with the same item between the hours of 2:00 to 3:00. how to avoid conflicts in the database.

  • freeCodeCamp.org
    November 10, 2020

    But why Matplotlib though? What does it do that excel does not? Isn't is easier to use excel graph features?

  • freeCodeCamp.org
    November 10, 2020

    @freeCodeCamp Please make a video on azure developer

  • freeCodeCamp.org
    November 10, 2020

    I thought the bar trick with around 30:00 is really cool. The One for the for loop. However, I `m not sure what the "pop" functionality is . Does anyone knows?

  • freeCodeCamp.org
    November 10, 2020

    Wow ! It's a superb course ! I learnt tons of things ! Also, at 59:00, you can use log=True option to make y log scale
    You're doing great ! Carry on !

  • freeCodeCamp.org
    November 10, 2020

    Much better than lots of those paid courses out there! Lean, clean and straightforward! Thanks a lot and please please record more videos on other data Science and python related topics in the same manner you did this course!

  • freeCodeCamp.org
    November 10, 2020

    Phyton trorial about data sciences on data backup

  • freeCodeCamp.org
    November 10, 2020

    My G!!!
    Thanks pal

  • freeCodeCamp.org
    November 10, 2020

    Please upload keras,scipy,sklearn too @freecodecamp

  • freeCodeCamp.org
    November 10, 2020

    i was waiting for this video ….. anyway can i use Pycharm ?

  • freeCodeCamp.org
    November 10, 2020

    How about a 4D plot with matplotlib?

  • freeCodeCamp.org
    November 10, 2020

    I searched this in the evening and guy you uploaded – Thanks a lot for this

  • freeCodeCamp.org
    November 10, 2020

    When will you be posting a complete DS/Algo video with python. Please do. I'll be appreciated. Ty FCC!!!

  • freeCodeCamp.org
    November 10, 2020

    Please do one numpy tutorial too πŸ‘πŸ‘πŸ‘

  • freeCodeCamp.org
    November 10, 2020

    Is there any way to learn all these courses step by step via freeCodeCamp website? I wanted to learn Python via their website like the webDevelopment own but can not find it.

    Why, is freeCodeCamp only YouTube based?

  • freeCodeCamp.org
    November 10, 2020

    Thanks🀩

  • freeCodeCamp.org
    November 10, 2020

    If there is any Indian. Better you prepare for government jobs. They give good perks and allowances as compared to FAANG!

  • freeCodeCamp.org
    November 10, 2020

    Yoooooo….. waiting for such a course

  • freeCodeCamp.org
    November 10, 2020

    😍😍😍 will you make a video for pandas and numpy too? πŸ‘€

  • freeCodeCamp.org
    November 10, 2020

    Love your videos they help me a lot.

  • freeCodeCamp.org
    November 10, 2020

    "Let's just jump into it" = immediate upvote

  • freeCodeCamp.org
    November 10, 2020

    Thank you

  • freeCodeCamp.org
    November 10, 2020

    thanks freecodecamp ……..

  • freeCodeCamp.org
    November 10, 2020

    πŸ’•πŸ’•πŸ’•πŸ’•πŸ’•

  • freeCodeCamp.org
    November 10, 2020

    First

  • freeCodeCamp.org
    November 10, 2020

    Nice

  • freeCodeCamp.org
    November 10, 2020

    exactly what I was about to start. Thank you.

  • freeCodeCamp.org
    November 10, 2020

    Great tutorial

Write a comment