Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

matplotlib random color

import random

# note that matplotlib requires 2d array for rbg colors
rgb = [[random.random(), random.random(), random.random()]]
plt.scatter(x, y, c=rgb)
 
PREVIOUS NEXT
Tagged: #matplotlib #random #color
ADD COMMENT
Topic
Name
9+9 =