On 13 May 2014 10:25, Alexandre Gramfort <notifications@github.com> wrote:

> In examples/plot_extract_events_from_raw.py:
>
> > @@ -32,4 +32,10 @@
> >            % (ind, before, after))
> >
> >  # Plot the events to get an idea of the paradigm
> > -mne.viz.plot_events(events, raw.info['sfreq'], raw.first_samp)
> > +# Specify colors and an event_id dictionary for the legend.
> > +event_id = {'aud_l': 1, 'aud_r': 2, 'vis_l': 3, 'vis_r': 4, 'smiley': 5,
> > +            'button': 32}
> > +color = {1: 'green', 2: 'yellow', 3: 'red', 4: 'c', 5: 'black', 32: 'blue'}
>
> if I use:
>
> color = {1: 'green', 2: 'yellow', 3: 'red', 4: 'c', 5: 'black'}
>
> I get a warning and button event is not displayed. I think it should be
> displayed anyway with an other color.
>
done

>  —
> Reply to this email directly or view it on GitHub<https://github.com/mne-tools/mne-python/pull/1266/files#r12585370>
> .
>