Ask Your Question

manolomartinez's profile - activity

2023-05-03 11:08:26 +0200 received badge  Notable Question (source)
2023-05-03 11:08:26 +0200 received badge  Popular Question (source)
2013-01-11 13:02:29 +0200 commented answer Plotting points with different colours

OK, I see how it goes. Thanks again.

2013-01-11 12:28:26 +0200 received badge  Scholar (source)
2013-01-11 12:28:26 +0200 marked best answer Plotting points with different colours

Do you need something like:

sum([point((x,sin(x)),rgbcolor=hue(sin(x)),size=30) for x in srange(0,10,0.1)])
2013-01-11 12:28:14 +0200 commented answer Plotting points with different colours

Yes! I would have never guessed `sum` does it. I guess I do not really understand what a point object is. For example, if I want to add a `polygon()` to the same plot, how do I do it?

2013-01-11 12:27:27 +0200 received badge  Supporter (source)
2013-01-11 10:58:31 +0200 asked a question 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?