I need to create random points (Min 12- Max 18 points between) in (X,Y) graphic.
This points had to be between 0-9 x and y. Like this
import random import matplotlib.pyplot as plt
x=[1,2,3,4,5,6,7,0,8,9]
y=[1,2,3,4,5,6,0,7,8,9] print(x+y)
random.shuffle(x)
random.shuffle(y)
a=plt.scatter(x,y, color='k', s=100)
random.shuffle(x)
random.shuffle(y)
b=plt.scatter(x,y, color='k', s=100)
plt.show()
Aucun commentaire:
Enregistrer un commentaire