import pandas as pd import numpy as np import matplotlib.pyplot as plt %matplotlib inline x = np.arange(1,50) y = np.arange(151,200) plt.scatter(x,y) Output : This is very basic plot that you can plot. You can modify the plot by giving it title, xlabel, ylabel, color to the points in order to make it more informative and attractive. Dec 21, 2016 · Note: This article has also featured on geeksforgeeks.com . This is the 2nd article in the series which covers graphing in python using matplotlib. This article will cover different types of plots that we can make using matplotlib.
May 06, 2020 · Introduction to Matplotlib. Matplotlib is a library used in Python to generate graphs and lines for 2D graphics. Matplotlib package is totally written in Python. Matplotlib uses simple commands to generate simple plots for your data. Installation. The first step is to install the Matplotlib using the pip command given below. pip install matplotlib