'Render whitened evoked.'

def _render_whitened_evoked(self, evoked_fname, noise_cov, baseline, image_format):

    evokeds = read_evokeds(evoked_fname, verbose=False)
    html = []
    for ev in evokeds:
        ev = read_evokeds(evoked_fname, ev.comment, baseline=baseline, verbose=False)
        global_id = self._get_id()
        kwargs = dict(noise_cov=noise_cov, show=False)
        img = _fig_to_img(ev.plot_white, image_format=image_format, **kwargs)
        caption = (u'Whitened    evoked    :    %s    (%s)' % (evoked_fname, ev.comment))
        show = True
        html.append(image_template.substitute(img=img, id=global_id, div_klass='evoked', img_klass='evoked', caption=caption, show=show, image_format=image_format))
    return '\n'.join(html)
