Skip to content

Commit

Permalink
finally plot examples?
Browse files Browse the repository at this point in the history
  • Loading branch information
jona-sassenhagen committed Jul 21, 2015
1 parent a1916bb commit 44a78d5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/stats/plot_regress_continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,14 @@
evokeds = linear_regression_raw(raw, events=events, event_id=event_id,
reject=None, tmin=tmin, tmax=tmax,
decim=4)
# linear_regression_raw returns a dict of evokeds
# select conditions similarly to mne.Epochs objects

# plot both results
cond = "faces"
fig, (ax1, ax2) = plt.subplots(1, 2)
epochs[cond].average().plot(axes=ax1)
evokeds[cond].plot(axes=ax2) # linear_regression_raw returns a dict of evokeds
epochs[cond].average().plot(axes=ax1, show=False)
evokeds[cond].plot(axes=ax2, show=False)
ax1.set_title("Traditional averaging")
ax2.set_title("rERF")
plt.show()

0 comments on commit 44a78d5

Please sign in to comment.