Skip to main content

Matplotlib: Pylab Module

As we know Matplotlib is a which package in which Pyplot is a module and Pylab is installed alongside Matplotlib. It is a procedural interface to the Matplotlib Object-oriented programming language.

It provides a Matlab like namespace by importing functions from the modules Numpy and Matplotlib. Matplotlib is used for plotting and Numpy is used for mathematical and working with arrays. 

Pylab interface is more convenient for interactive calculations and plotting, as it minimizes typing.


import pylab
import numpy as np
a=np.linspace(0, 20, 100)


pylab module

Submitted by devanshi.srivastava on November 26, 2021

Devanshi, is working as a Data Scientist with iVagus. She has expertise in Python, NumPy, Pandas and other data science technologies.


At ProgramsBuzz, you can learn, share and grow with millions of techie around the world from different domain like Data Science, Software Development, QA and Digital Marketing. You can ask doubt and get the answer for your queries from our experts.