Header Ads

Header ADS

Matplotlib introduction in python


" Matplotlib is a plotting library for the Python programming language and its numerical mathematics extension NumPy. It provides an object-oriented API for embedding plots into applications using general-purpose GUI toolkits like TkinterwxPythonQt, or GTK+. There is also a procedural "pylab" interface based on a state machine (like OpenGL), designed to closely resemble that of MATLAB, though its use is discouraged. SciPy makes use of Matplotlib.

Matplotlib was originally written by John D. Hunter, since then it has an active development community and is distributed under a BSD-style license. Michael Droettboom was nominated as matplotlib's lead developer shortly before John Hunter's death in August 2012, and further joined by Thomas Caswell.

Matplotlib 2.0.x supports Python versions 2.7 through 3.6. Python 3 support started with Matplotlib 1.2. Matplotlib 1.4 is the last version to support Python 2.6.Matplotlib has pledged to not support Python 2 past 2020 by signing the Python 3 Statement. "( source Wikipedia )


In simple Terms .

Matplotlib.pyplot is a plotting library used for 2D graphics in python programming language .

it can be used in python scripts , shell, web Application servers and other Graphical User Interface toolkits.

I use Matplotlib.pyplot because the pyplot class of Matplotlib is used to creates 2D figures.


Python Matplotlib : Types of Plots

  1. Bar graph
  2. Histogram
  3. Scatter plot
  4. Area Plot
  5. Pie plot

We are going to creates plots like this .

Installation :

     pip install matplotlib    
 


No comments

Powered by Blogger.