Plot Line Graph from NumPy array

A line graph is used to visualize data points connected by straight lines. In Python, NumPy is used to create numerical arrays, while Matplotlib provides the plotting functions required to display line graphs.Example: In this example, plt.plot() creates a line graph using values stored in NumPy arrays.Pythonimport numpy as np