Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can use your own python function:

def rim_polygon(V,border_color='black',**kwargs):
    G = polygon(V,**kwargs)
    d = kwargs.get('thickness',1)
    G += polygon(V,color=border_color,fill=False,thickness=d)
    return G

L = [(0,0),(0,1),(2,1),(1,0)]
rim_polygon(L,color='red',alpha=0.5,thickness=4,axes=False)