Plotting points with different colours
I'm trying to plot a number of points such that each has a colour that depends on a certain parameter. I have two lists, points
and heights
, and I would like to do something like this:
for i in range(len(points)):
point2d(points[i], rgbcolor = (0,0, heights[i]))
This creates len(points)
different graphics, so it's not what I want. What do I need to change?