## Matplotlib (Python Plotting) 1: Introduction

On this tutorial, we cover Matplotlib’s basic Pyplot library to demonstrate the basics of plotting. This includes plotting overlaying plots on a figure and adding title, labels and legends.

IPython Notebook:
https://github.com/snazrul1/PyRevolution/blob/master/matplotlib/2D%20Plot.ipynb

Author:

Source

### Comment List

• PyRevolution
December 6, 2020

nicely tutorial, thanks for sharing this

• PyRevolution
December 6, 2020

Upon saving the plot. I having the error <Figure size 360×360 with 0 Axes>. I get blank png file as output.

• PyRevolution
December 6, 2020

How i take input from user ans convert it to list

• PyRevolution
December 6, 2020

• PyRevolution
December 6, 2020

Do you have videos for python for beginner from zero to awarness?

• PyRevolution
December 6, 2020

It says: module 'matplotlib' has no attribute 'plot'

• PyRevolution
December 6, 2020

Thank you sir

• PyRevolution
December 6, 2020

Not EVER is a single practical example shown in any video anywhere on the internet.
Without exception, 100% of the data for graphs that people need to plot are given by complicated for-loops.
Example: x = t*exp(-t) y = (t^(-3) + 5*t)*exp(-t^2 +7*t^(-1)) for t in range [1,100]

• PyRevolution
December 6, 2020

THe video doesn't explain the difference between plt.figure and plt.plot

• PyRevolution
December 6, 2020

What if you x axis data is coming from a csv file? and the x axis is date (1st march to 31st march)

• PyRevolution
December 6, 2020

Can we find the slope of the graph?

• PyRevolution
December 6, 2020

• PyRevolution
December 6, 2020

i love cats too

• PyRevolution
December 6, 2020

The sound was so tiny that I couldn't hear it, though the graphs looked good.

• PyRevolution
December 6, 2020

Very nice. I am a green pea to Jupyter and Python, and this helped a lot. Thanks.

• PyRevolution
December 6, 2020

New to Jupyter, and thank you.

• PyRevolution
December 6, 2020

Help. I am getting this error for the code at 1:55 :

Traceback (most recent call last):
File "hola.py", line 7, in <module>
plt.figure(figsize=(15,5))
AttributeError: module 'matplotlib' has no attribute 'figure'

Maybe my matplotlib instalation is wrong

• PyRevolution
December 6, 2020

how do I graph the negative part?

• PyRevolution
December 6, 2020

im using pycharm for python. I do the line "import mathplotlib" and it doesn't recognise the library, is the plotting library a different one for pycharm?

• PyRevolution
December 6, 2020

hi, thnx for the video.
i have a doubt. i have a 3D array of a bunch of 2D arrays. i want to plot all of those 2D arrays together. please tell me how do i use matplotlib in this approach?

• PyRevolution
December 6, 2020

Watching another video, I thought that plt.plot(x,y) was not enough and you had to do plt.show()

• PyRevolution
December 6, 2020

can you make a video how to install matplotlib correct pls? Thanks in advance ðŸ™‚