(self, scale_factor=1., fill_color=None)
return (
            '<circle cx="{0.x}" cy="{0.y}" r="{1}" '
            'stroke="#555555" stroke-width="{2}" fill="{3}" opacity="0.6" />'
            ).format(self, 3. * scale_factor, 1. * scale_factor, fill_color)
Returns SVG circle element for the Point geometry.

        Parameters
        ==========
        scale_factor : float
            Multiplication factor for the SVG circle diameter.  Default is 1.
        fill_color : str, optional
            Hex string for fill color. Default is to use "#66cc99" if
            geometry is valid, and "#ff3333" if invalid.
Returns SVG circle element for the Point geometry.
Returns SVG circle element for the Point geometry .
def svg(self, scale_factor=1., fill_color=None):
        """Returns SVG circle element for the Point geometry.

        Parameters
        ==========
        scale_factor : float
            Multiplication factor for the SVG circle diameter.  Default is 1.
        fill_color : str, optional
            Hex string for fill color. Default is to use "#66cc99" if
            geometry is valid, and "#ff3333" if invalid.
        """
        if self.is_empty:
            return '<g />'
        if fill_color is None:
            fill_color = "#66cc99" if self.is_valid else "#ff3333"
        return (
            '<circle cx="{0.x}" cy="{0.y}" r="{1}" '
            'stroke="#555555" stroke-width="{2}" fill="{3}" opacity="0.6" />'
            ).format(self, 3. * scale_factor, 1. * scale_factor, fill_color)
def svg ( self , scale_factor = 1. , fill_color = None ) : if self . is_empty : return '<g />' if fill_color is None : fill_color = "#66cc99" if self . is_valid else "#ff3333" return ( '<circle cx="{0.x}" cy="{0.y}" r="{1}" ' 'stroke="#555555" stroke-width="{2}" fill="{3}" opacity="0.6" />' ) . format ( self , 3. * scale_factor , 1. * scale_factor , fill_color )