(self)
return result, {"isolated": True}
Returns an SVG representation of this plot as a string.

        This method is used by IPython to display this plot inline.
Returns an SVG representation of this plot as a string.
Returns an SVG representation of this plot as a string .
def _repr_svg_(self):
        """Returns an SVG representation of this plot as a string.

        This method is used by IPython to display this plot inline.
        """
        io = BytesIO()
        # Create a new SVG surface and use that to get the SVG representation,
        # which will end up in io
        surface = cairo.SVGSurface(io, self.bbox.width, self.bbox.height)
        context = cairo.Context(surface)
        # Plot the graph on this context
        self.redraw(context)
        # No idea why this is needed but python crashes without
        context.show_page()
        surface.finish()
        # Return the raw SVG representation
        result = io.getvalue().decode("utf-8")
        return result, {"isolated": True}
def _repr_svg_ ( self ) : io = BytesIO ( ) # Create a new SVG surface and use that to get the SVG representation, # which will end up in io surface = cairo . SVGSurface ( io , self . bbox . width , self . bbox . height ) context = cairo . Context ( surface ) # Plot the graph on this context self . redraw ( context ) # No idea why this is needed but python crashes without context . show_page ( ) surface . finish ( ) # Return the raw SVG representation result = io . getvalue ( ) . decode ( "utf-8" ) return result , { "isolated" : True }