Skip to content

Commit

Permalink
Merge pull request #2743 from jaeilepp/fix-to-gfp
Browse files Browse the repository at this point in the history
[MRG] Fix to gfp with ylim.
  • Loading branch information
larsoner committed Dec 23, 2015
2 parents b4f5580 + 66473ab commit 6a5d11d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mne/viz/evoked.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6a5d11d

Please sign in to comment.