Matplotlib Tutorial 1 – Introduction and Line




[ad_1]

Welcome to a Matplotlib with Python 3+ tutorial series. In this series, we’re going to be covering most aspects to the Matplotlib data visualization module. Matplotlib is capable of creating most kinds of charts, like line graphs, scatter plots, bar charts, pie charts, stack plots, 3D graphs, and geographic map graphs.

First, in order to actually use Matplotlib, we’re going to need it!

If you have a later version of Python installed, you should be able to open cmd.exe/terminal and then run:

pip install matplotlib

Note: You may need to do C:/Python34/Scripts/pip install matplotlib if the above shorter version doesn’t work.

sample code: http://pythonprogramming.net
http://hkinsley.com
https://twitter.com/sentdex
http://sentdex.com
http://seaofbtc.com

Source


[ad_2]

Comment List

  • sentdex
    November 29, 2020

    nice video. straight and simple

  • sentdex
    November 29, 2020

    2:32 inicia el tutoral

  • sentdex
    November 29, 2020

    I've made a 3D scatter plot by following your tutorial, but now I'm looking for that when I put my mouse on a certain data point in the plot, it could select that point and show me the exact coordinates of that point…. How can I achieve this….

  • sentdex
    November 29, 2020

    I am going to write "trained by sentdex" in my resume to get all the jobs

  • sentdex
    November 29, 2020

    Nice video.

    I have an article about Python data visualization with Maptlotlib in Jupyter Notebook for Absolutely Beginner.
    You can check this link

    https://medium.com/@bahrulsg/data-visualization-with-matplotlib-for-absolute-beginner-part-i-655275855ec8

    Thank you.

  • sentdex
    November 29, 2020

    What GUI is being used here? Jupyterlab? I'm asking because in Jupyter Notebooks and JupyterLab, my plot doesn't pop up in a separate window with the buttons on the bottom.

  • sentdex
    November 29, 2020

    You're the best Python teacher on YouTube!

  • sentdex
    November 29, 2020

    What is the editor used here?

  • sentdex
    November 29, 2020

    thank's a lot sendtex

  • sentdex
    November 29, 2020

    amazing

  • sentdex
    November 29, 2020

    You are rock! You clearly helped me. I would like to know these kind of information and never saw this before. Thank you in 2020.

  • sentdex
    November 29, 2020

    Great video…. Thanks from algeria

  • sentdex
    November 29, 2020

    Thank you Brother….

  • sentdex
    November 29, 2020

    I'm using Jupyter Notebook and in the end the graph shows, but it doesn't show icons nor can I move the graph.

  • sentdex
    November 29, 2020

    You are plotting two lists(which are already populated).
    can we plot the points in the real time i.e., without creating a list?

  • sentdex
    November 29, 2020

    Hey I was going to ask you, do you have any good videos on Python using a mac?

  • sentdex
    November 29, 2020

    Stop now. Find another tutorial. Later on, when you go through pulling data from the internet, you will run into trouble because those sites are gone and the code has to be changed. Just save yourself the trouble.

  • sentdex
    November 29, 2020

    Thanks for making this tutorial. Im starting this playlist 1-32 today. Your style of teaching is very clear, and straight to the point. Thx

  • sentdex
    November 29, 2020

    Start at 5:41

  • sentdex
    November 29, 2020

    thank you so much

  • sentdex
    November 29, 2020

    Can I still follow this Matplotlib tutorial ??

  • sentdex
    November 29, 2020

    I just started using matplotlib and if you googles colab numpy and matplotlib are included. Easy tool to use and you can save things to google drive!

  • sentdex
    November 29, 2020

    Where should I save the graph????

  • sentdex
    November 29, 2020

    Great material! Best python tutorial in the web. Congrats!!

  • sentdex
    November 29, 2020

    Best Python teacher on youtube!!!

  • sentdex
    November 29, 2020

    your tutorial is awesome. It help me to finish my problem

  • sentdex
    November 29, 2020

    Give this man a noble prize

  • sentdex
    November 29, 2020

    Don't forget to turn your data into numbers (int or float) or you will get really confusing results if they are strings

  • sentdex
    November 29, 2020

    The longer path also does not work, I get a syntax error (windows 10, absolute beginner). Any advice?

  • sentdex
    November 29, 2020

    Hello , please can you help me .I'm really stuck. I drew 3 curves in the same figure using Pycharm but the scale of graduations for the y-axis is really catastrophic. In fact for one of the curves the values are very small whereas for the other curve the values are very large so that the curve whose values are very small is almost not displayed. please help .
    This is the code:

    import numpy as np
    c1,c2,c3=np.array([0,400],dtype=float),np.array([300,12500],dtype=float),np.array([20,45],dtype=float)
    mb1,mb2,mb3=np.array([0,18],dtype=float),np.array([0,12.2],dtype=float),np.array([0,1.4],dtype=float)
    import matplotlib.pyplot as plt
    plt.plot(mb1,c1,'s-',markerfacecolor='white',label="Process 1 ")
    plt.plot(mb2,c2,'s-',markerfacecolor='white',label="Process 2 ")
    plt.plot(mb3,c3,'s-',markerfacecolor='white',label="Process 3")
    plt.yticks(c1, c1, color='k')
    plt.xticks(mb1, mb1, color='k')
    #ajouter les limites des axes
    plt.xlim(0.4,20)
    plt.ylim(20,12500)
    plt.grid()
    plt.legend()
    plt.show()
    plt.savefig('image.png')

  • sentdex
    November 29, 2020

    great lecture

  • sentdex
    November 29, 2020

    Wow, a Youtube programming tutor whose words I can understand clearly. A nice change!

  • sentdex
    November 29, 2020

    which ide you use for python?

  • sentdex
    November 29, 2020

    A great content sir. Keep up the good work. You are just awesome!!!

  • sentdex
    November 29, 2020

    Your awesome. I am leraning very fast from your videos.
    As beginer I am happy keep on updating.
    Great job

  • sentdex
    November 29, 2020

    thankYou

  • sentdex
    November 29, 2020

    One thing is bad about programing is you have to update course time to time . Technology is growing so fast

Write a comment