import random import numpy as np plt.scatter(x, y, c=np.random.rand(3,))
import random # note that matplotlib requires 2d array for rbg colors rgb = [[random.random(), random.random(), random.random()]] plt.scatter(x, y, c=rgb)