Matplotlib(Python)

Vatsal Sharma
2 min readJun 11, 2021

--

IMG Credits- Google Images

Matplotlib is an open source plotting library used for 2D graphics , available for the Python programming language as a component of NumPy, a big data numerical handling resource. It uses an object oriented API to embed plots in Python applications.

It is very helpful in drawing graphs from which we can draw useful insights , Matplotlib is used for the same purpose in Data Science field.

(All the information given is stated by assuming that user is working on Google Colab on which Matplotlib comes pre-installed).

Features

  • Open Source.
  • Plotting Graphs.
  • Manipulating Graphical Data.
  • Modifying graphs by setting various parameters.
  • Plotting subplots.

and many more….

Applications

  • Data Analytics/Analysis.

(We can draw various useful insights from our Data in form of Different Plots , by setting different parameters , this is it’s biggest application which is used in every project we work upon.)

Importing Matplotlib

Input- import matplotlib.pyplot as plt

‘plt’ is Matplotlib’s popular abbreviation. Import it as ‘plt’ & GET SET PLOT!

Miscellaneous

We can use semi-colon(;) in the end of our statements while plotting graphs using Matplolib Python & it won’t give us an error.

This reminds me of a popular joke(which has a limited perspective)..

He- I wanna be ; (semicolon) to your code.

She- I code in Python.🤣

So , to all my single friends , after reading this Blog , you’ve got Matplotlib to your Rescue. Let’s give it a TRY! ✔

Happy Learning Folks!

Follow me on LinkedIn- https://www.linkedin.com/in/imvat18/

--

--

Vatsal Sharma
Vatsal Sharma

Written by Vatsal Sharma

Building Yarnit 🚀 | SDE-I @Yarnit | Ex- Data Science Intern @Aiotize | JIIT'22 | Aficionado 🏏 https://www.linkedin.com/in/imvat18/

No responses yet