code: def make_report(plots, path):
      '''
      Creates a fat html report based on the previously created files
      plots is a list of Plot objects defined by a path and title
      statsfile is the file to which the stats have been saved,
      which is parsed to a table (rather dodgy)
      '''
      logging.info("Writing html report.")
      html_head = 
      html_content = ["\n<body>\n<h1>NanoComp report</h1>"]
      html_content.append("<h2>Summary statistics</h2>")
      html_content.append(utils.stats2html(path + "NanoStats.txt"))
      html_content.append('\n<br>\n<br>\n<br>\n<br>')
      html_content.append("<h2>Plots</h2>")
      for plot in plots:
          html_content.append("\n<h3>" + plot.title + "</h3>\n" + plot.encode())
          html_content.append('\n<br>\n<br>\n<br>\n<br>')
      html_body = '\n'.join(html_content) + "</body></html>"
      html_str = html_head + html_body
      with open(path + "NanoComp-report.html", "w") as html_file:
          html_file.write(html_str)
      return path + "NanoComp-report.html"
docs: Creates a fat html report based on the previously created files
      plots is a list of Plot objects defined by a path and title
      statsfile is the file to which the stats have been saved,
      which is parsed to a table (rather dodgy)