I would like to get the center point(x,y) of a figure created by a set of points.
How do I do this?
If you mean centroid, you just get the average of all the points.
x = [p for p in points] y = [p for p in points] centroid = (sum(x) / len(points), sum(y) / len(points))
I assume that a point is a tuple like (x,y).
x,y=zip(*points) center=(max(x)+min(x))/2., (max(y)+min(y))/2.