Answers for "matplotlob line"

0

matplotlob line

draw line using matplotlib liabrary
-----------------------------------
import matplotlib.pyplot as plt
import numpy as np

xpoints = np.array([0, 6])
ypoints = np.array([0, 250])

plt.plot(xpoints, ypoints)
plt.show()
Posted by: Guest on February-20-2021

Browse Popular Code Answers by Language