mne-tools/mne-python — pull request #221 by dengemann (2012-12-05 08:09:40+00:00)
Title: ENH: Generalize epoch images to handle custom data (misc)

This is an intermediate commit, please don't merge yet.

Current problems:
- the single channel epochs image plot would appear but on invoking pl.tight_layout the routine would exit with an ugly low level error: "RuntimeError: CGContextRef is NULL"
- the plot topo epochs images would hang up and kill my hard disk by excessive swapping.

The test scenario was:

```Python

run examples/preprocessing/plot_ica_from_raw.py

events = mne.find_events(raw)

ica_raw.info['projs'] = []

ica_epochs = mne.Epochs(ica_raw, events, 1, -.2, .5, picks=np.arange(ica.n_components), baseline=None)

mne.viz.plot_image_epochs(ica_epochs, [1], 0.5, keep_only_data_channels=False, units=dict(misc='AU'),scalings=dict(misc=1))

```