Friday, October 29, 2021

Introduction to matplotlib

Introduction to matplotlib

Introduction to matplotlib:

matplotlib is a 2-d graphing library in python.Matplotlib comes with a wide variety of plots. Plots helps to understand trends, patterns. It is used for data visualization using pyplot.

data visualization: It is the process of constructing graphical object like pie chart, bar graph, histogram etc from the data.

pyplot: pyplot is a collection of function which allows user to constuct 2D plots(graphs) from data

Installation:

Installation using pip: The code and the steps are listed below. Note: pip has to be installed in the system inorder for this to work

  • open cmd or terminal on the computer
  • type:
    • pip install matplotlib
    • press enter

References:

  • informatics practices by sumita arora
Share: