import matplotlib.pyplot as plt
import numpy as np
xpoints = np.array([1,8])
ypoints = np.array([3,10])
plt.plot(xpoints,ypoints)
plt.show()
Solve Problems by Coding Solutions - A Complete solution for python programming
import matplotlib.pyplot as plt
import numpy as np
xpoints = np.array([1,8])
ypoints = np.array([3,10])
plt.plot(xpoints,ypoints)
plt.show()
import matplotlib.pyplot as plt
x=[30,30,20,20]
labeks=["Python","Java","C","C++"]
plt.pie(x,labels=labeks)
plt.show()