docs: def to_str(self):
          """
          Returns a string of the SVG figure.
          """
          return etree.tostring(self.root, xml_declaration=True,
                                standalone=True,
                                pretty_print=True)