Buggy behavior in `mne.viz.plot_compare_evokeds` that botches some/all default matplotlib rc params. Both with my own data as well as [tutorial] gist(http://martinos.org/mne/stable/auto_tutorials/plot_visualize_evoked.html#sphx-glr-auto-tutorials-plot-visualize-evoked-py) I get arbitrarily colored axes background that I can't control. ``` import os.path as op import numpy as np import matplotlib.pyplot as plt import mne data_path = mne.datasets.sample.data_path() fname = op.join(data_path, 'MEG', 'sample', 'sample_audvis-ave.fif') evoked = mne.read_evokeds(fname, baseline=(None, 0), proj=True) conditions = ["Left Auditory", "Right Auditory", "Left visual", "Right visual"] evoked_dict = dict() for condition in conditions: evoked_dict[condition.replace(" ", "/")] = mne.read_evokeds( fname, baseline=(None, 0), proj=True, condition=condition) print(evoked_dict) colors = dict(Left="Crimson", Right="CornFlowerBlue") linestyles = dict(Auditory='-', visual='--') pick = evoked_dict["Left/Auditory"].ch_names.index('MEG 1811') mne.viz.plot_compare_evokeds(evoked_dict, picks=pick, colors=colors, linestyles=linestyles) ``` Returns <img width="619" alt="screen shot 2017-03-24 at 2 02 25 pm" src="https://cloud.githubusercontent.com/assets/4381290/24313584/9eda74ec-109a-11e7-8d98-7e61947f2366.png"> cc @jona-sassenhagen
Activity