graphing with matplotlib pyplot introduction in this we will explore the matplotlib pyplot api this is the most common way in which developers generate different types of graphs or plots using matplotlib the pyplot api the purpose of the pyplot module and the api it presents is to simplify the generation and manipulation of matplotlib plots and charts as whole the matplotlib library tries to make simple things easy and complex things possible the primary way in which it achieves the first of these aims is through the pyplot api as this api has high level functions such as bar()plot()scatter(and pie(that make it easy to create bar chartsline plotsscatter graphs and pie charts one point to note about the functions provided by the pyplot api is that they can often take very many parametershowever most of these parameters will have default values that in many situations will give you reasonable default behaviourdefault visual representation you can therefore ignore most of the parameters available until such time as you actually need to do something differentat which point you should refer to the matplotlib documentation as this has extensive material as well as numerous examples it is of course necessary to import the pyplot moduleas it is module within the matplotlib ( matplotlib pyplotlibrary it is often given an alias within program to make it easier to reference common alias for this module are pyplot or plt typical import for the pyplot module is given belowimport matplotlib pyplot as pyplot (cspringer nature switzerland ag huntadvanced guide to python programmingundergraduate topics in computer science