Matplotlib Tutorial

Matplotlib - Introduction

Matplotlib is a plotting library for the Python programming language used for data visualization. It provides an object-oriented API for embedding plots into applications using general-purpose GUI toolkits like Tkinter, wxPython, Qt, or GTK+. There is also a procedural "pylab" interface designed to closely resemble that of MATLAB, with the ability to use Python, and the advantage of being free and open-source. Matplotlib was originally written by John D. Hunter and is distributed under a BSD-style license.

The Matplotlib package allows user to create below mentioned types of charts, plots and functionalities for data visualization.

  • Line Plot
  • Multiple subplots in one figure
  • Contouring and pseudocolor
  • Histograms
  • Paths
  • Three-dimensional plotting
  • Streamplot
  • Ellipses
  • Bar charts
  • Pie charts
  • Tables
  • Scatter plots
  • GUI widgets
  • Filled curves
  • Date handling
  • Log plots
  • Polar plots
  • Legends
  • TeX-notation for text objects
  • Native TeX rendering
  • XKCD-style sketch plots