This is an automated email from the git hooks/post-receive script.

yoh pushed a commit to annotated tag v0.1
in repository python-mne.

commit 2459381655d497c4171fa5d31e1646bec02abcce
Author: Alexandre Gramfort <[email protected]>
Date:   Tue Apr 12 17:06:03 2011 -0400

    adding show kw to plot_evoked
---
 mne/viz.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/mne/viz.py b/mne/viz.py
index 7b3bc04..d1be170 100755
--- a/mne/viz.py
+++ b/mne/viz.py
@@ -29,7 +29,7 @@ def plot_topo(evoked, layout):
     pl.rcParams['axes.edgecolor'] = 'k'
 
 
-def plot_evoked(evoked, picks=None, unit=True):
+def plot_evoked(evoked, picks=None, unit=True, show=True):
     """Plot evoked data
 
     Parameters
@@ -40,6 +40,8 @@ def plot_evoked(evoked, picks=None, unit=True):
         The indices of channels to plot. If None show all.
     unit : bool
         Scale plot with channel (SI) unit.
+    show : bool
+        Call pylab.show() as the end or not.
     """
     pl.clf()
     if picks is None:
@@ -71,4 +73,5 @@ def plot_evoked(evoked, picks=None, unit=True):
             pl.ylabel('data (%s)' % ch_unit)
 
     pl.subplots_adjust(0.175, 0.08, 0.94, 0.94, 0.2, 0.63)
-    pl.show()
+    if show:
+        pl.show()

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/debian-med/python-mne.git

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to