[med-svn] [python-mne] 149/353: fix std not var
Yaroslav Halchenko
debian at onerussian.com
Fri Nov 27 17:24:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
yoh pushed a commit to tag 0.4
in repository python-mne.
commit c356aedb49423de5ad6a4e93f444488077d4f057
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date: Mon Apr 16 19:23:22 2012 +0200
fix std not var
---
mne/viz.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mne/viz.py b/mne/viz.py
index 66d1d4b..aa651b3 100644
--- a/mne/viz.py
+++ b/mne/viz.py
@@ -105,6 +105,7 @@ def plot_cov(cov, info, exclude=None, colorbar=True, proj=False, show_svd=True,
Call pylab.show() as the end or not.
show_svd : bool
Plot also singular values of the noise covariance for each sensor type.
+ We show square roots ie. standard deviations.
"""
ch_names = [n for n in cov.ch_names if not n in exclude]
ch_idx = [cov.ch_names.index(n) for n in ch_names]
@@ -148,7 +149,7 @@ def plot_cov(cov, info, exclude=None, colorbar=True, proj=False, show_svd=True,
pl.subplot(1, len(idx_names), k + 1)
pl.ylabel('Noise std (%s)' % unit)
pl.xlabel('Eigenvalue index')
- pl.semilogy(s * (scaling ** 2))
+ pl.semilogy(np.sqrt(s) * scaling)
pl.title(name)
try:
pl.tight_layout() # XXX : recent pylab feature
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-mne.git
More information about the debian-med-commit
mailing list