in pyplot i am getting one error while running this code

Viewed 15

This code is giving me ERROR :- S must be a scalar or float it there anything wrong with this code

import numpy as np
import matplotlib.pyplot as plt
x=np.random.randint(1,100,size=(250),)
y=np.random.randint(1,100,size=(250),)
size=range(1,60,5)
color=['r','b','c','m','g','k']
plt.scatter(x,y,s=size,c=color)
plt.xlabel("xvalues")
plt.ylabel("yvalues")
plt.show()
0 Answers
Related