36
How to plot graphs in Python using Matplotlib
Hello, I am back with another article on Graphs in Python.
To plot graphs we will be using two python libraries
Let's go on to code,
import matplotlib.pyplot as plt
import numpy as np
x = np.array([200, 400])
y = np.array([0, 100])
plt.plot(x, y)
plt.show()
36