'Render events.'

def _render_eve(self, eve_fname, sfreq, image_format):

    global_id = self._get_id()
    events = read_events(eve_fname)
    kwargs = dict(events=events, sfreq=sfreq, show=False)
    img = _fig_to_img(plot_events, image_format=image_format, **kwargs)
    caption = ('Events    :    ' + eve_fname)
    html = image_template.substitute(img=img, id=global_id, div_klass='events', img_klass='events', caption=caption, show=True, image_format=image_format)
    return html
