Ask Your Question

Revision history [back]

Just use fill=False.

For example.

sage: p = RDF.pi()
sage: n = 12
sage: pol = polygon([(cos(2*k*p/n), sin(2*k*p/n)) for k in range(n)], fill=False)
sage: pol.show(aspect_ratio=1)

Just use fill=False.

For example.example, let us draw a regular 12-gon.

sage: p = RDF.pi()
sage: n = 12
sage: pol = polygon([(cos(2*k*p/n), sin(2*k*p/n)) for k in range(n)], fill=False)
sage: pol.show(aspect_ratio=1)