'Render cov.'

def _render_cov(self, cov_fname, info_fname, image_format):

    global_id = self._get_id()
    cov = read_cov(cov_fname)
    (fig, _) = plot_cov(cov, info_fname, show=False)
    img = _fig_to_img(fig=fig, image_format=image_format)
    caption = ('Covariance    :    %s    (n_samples:    %s)' % (cov_fname, cov.nfree))
    show = True
    html = image_template.substitute(img=img, id=global_id, div_klass='covariance', img_klass='covariance', caption=caption, show=show, image_format=image_format)
    return html
