docs: def fromfile(fname):
      """Open SVG figure from file.
  
      Parameters
      ----------
      fname : str
          name of the SVG file
  
      Returns
      -------
      SVGFigure
          newly created :py:class:`SVGFigure` initialised with the file content
      """
      fig = SVGFigure()
      with open(fname) as fid:
          svg_file = etree.parse(fid)
  
      fig.root = svg_file.getroot()
      return fig