Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to plot a list of circles

I would like to know if there is a mechanism in SageMath to do the following.

lis=[(4,1),(5,6),(2,2),(3,4),(6,3.2),(2.6,2.5),(5.8, 2.4),(2,3.4),(4.2,4),(5.6,1)]
from sage.plot.circle import Circle
for i in len(lis-1):
    p[i]=circle(lis[i], .05, fill=true,  color='red')

(unfortunately my code is wrong) and then to do a sum of the p[i] to plot the circles ?