From 66473abab6eabee2384dcaec497bf99889d09c83 Mon Sep 17 00:00:00 2001 From: jaeilepp Date: Wed, 23 Dec 2015 18:39:08 +0100 Subject: [PATCH] Fix to gfp with ylim. --- mne/viz/evoked.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mne/viz/evoked.py b/mne/viz/evoked.py index 81f44324fc0..128ba103aae 100644 --- a/mne/viz/evoked.py +++ b/mne/viz/evoked.py @@ -306,7 +306,8 @@ def _plot_evoked(evoked, picks, exclude, unit, show, if gfp: # 'only' or boolean True gfp_color = 3 * (0.,) if spatial_colors else (0., 1., 0.) this_gfp = np.sqrt((D * D).mean(axis=0)) - this_ylim = ax.get_ylim() + this_ylim = ax.get_ylim() if (ylim is None or t not in + ylim.keys()) else ylim[t] if not gfp_only: y_offset = this_ylim[0] else: