introduction to matplotlib matplotlib can be used on its own or in conjunction with other libraries to provide wide variety of facilities one library that is often used in conjunction with matplotlib is numpy which is library often used in data science applications that provides variety of functions and data structures (such as -dimensional arraysthat can be very useful when processing data for display within chart howevermatplotlib does not come prebuilt into the python environmentit is an optional module which must be added to your environment or ide in this we will introduce the matplotlib libraryits architecturethe components that comprise chart and the pyplot api the pyplot api is the simplest and most common way in which programmer interacts with matplotlib we will then explore variety of different types of chart and how they can be created using matplotlibfrom simple line chartsthrough scatter chartsto bar charts and pie charts we will finish by looking at simple chart matplotlib matplotlib is graph plotting library for python for simple graphs matplotlib is very easy to usefor example to create simple line graph for set of and coordinates you can use the matplotlib pyplot plot functionimport matplotlib pyplot as pyplot plot sequence of values pyplot plot([ ]display the chart in window pyplot show(this very simple program generates the following graph