On 8 May 2014 08:43, Alexandre Gramfort <notifications@github.com> wrote:

> In mne/viz.py:
>
> >      import matplotlib.pyplot as plt
> >      fig = plt.figure()
> >      min_event = np.min(events[:, 2])
> >      max_event = np.max(events[:, 2])
> > -    plt.plot((events[:, 0] - first_samp) / sfreq, events[:, 2], '.')
> > +    for idx, ev in enumerate(unique_events):
>
> for idx, (ev, color) in enumerate(zip(unique_events, colors)):
>
@agramfort OK done

Do you want me to do the suggestions from @dengemann next?
(What I would love to see here is an event_id parameter that adds names to
the events such that a legend could be produced. On top of that each event
id could have a color. To me color would be a mapping (dictionary) that
assigns colors to certain values of the event list.)

> is cleaner than the next below
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mne-tools/mne-python/pull/1266/files#r12426231>
> .
>