just make sure it does not fail if there is less than 20 epochs available


On Thu, Sep 5, 2013 at 10:00 PM, Alexandre Gramfort <
alexandre.gramfort@m4x.org> wrote:

> make 20 the default and lets move on.
>
>
> On Thu, Sep 5, 2013 at 9:56 PM, Denis A. Engemann <
> notifications@github.com> wrote:
>
>> In mne/viz.py:
>>
>> > +        bad_idx = [ch_picked.index(k) for k in bads if k in ch_names]
>> > +        good_idx = [p for p in picks if p not in bad_idx]
>> > +    else:
>> > +        good_idx = np.arange(n_channels)
>> > +
>> > +    fig, axes = _prepare_trellis(len(data), max_col=5)
>> > +    for ii, data_, ax in zip(epoch_idx, data, axes):
>> > +        ax.plot(times, data_[good_idx].T, color='k')
>> > +        if bad_idx is not None:
>> > +            ax.plot(times, data_[bad_idx].T, color='r')
>> > +        if title_str is not None:
>> > +            ax.set_title(title_str % ii, fontsize=12)
>> > +        ax.set_ylim(vmin, vmax)
>> > +        ax.set_yticks([])
>> > +        ax.set_xticks([])
>> > +    tight_layout()
>>
>>  Is it possible draw() needs to be called before tight_layout or
>> something?
>>
>> hard to address since it works here on my box ...
>> Shall we address this later?
>>
>> —
>> Reply to this email directly or view it on GitHub<https://github.com/mne-tools/mne-python/pull/741/files#r6192141>
>> .
>>
>
>