[Mne_analysis] mne.viz.plot_topo behavior

Denis-Alexander Engemann denis.engemann at gmail.com
Wed Jun 26 19:25:31 EDT 2013
Search archives:

Hi Kambiz,

which version of mne-python are you running? Does the example you refer to
work on your machine?
And, yes, using plot_topo, theoretically any number of conditions can be
visualized.

Cheers,
Denis



On Thu, Jun 27, 2013 at 1:12 AM, Kambiz Tavabi <ktavabi at uw.edu> wrote:

> Hi all,
> A little quirky behavior I can't make sense of; I am trying to show
> topography for different conditions using mne.viz.plot_topo however I keep
> getting a type error regarding the number of input arguments
> i.e., plot_topo() takes at least X arguments (Y given) that I can't make
> sense of. By the way, I assume I can plot any number of conditions using
> this function, right?
>
> Here is my code snippet:
> # Generate list of evoked objects from conditions names
> evokeds = [epochs[name].average() for name in 'retroflex_standard',
> 'dental_deviant']
>
> *print* evokeds
> [<Evoked  |  comment : 'retroflex_standard', time : [-0.100000, 0.500000],
> n_epochs : 79, n_channels x n_times : 204 x 601>, <Evoked  |  comment :
> 'dental_deviant', time : [-0.100000, 0.500000], n_epochs : 80, n_channels x
> n_times : 204 x 601>]
>
> From the tutorial<http://martinos.org/mne/auto_examples/plot_topo_compare_conditions.html>
>
> from mne.viz import plot_topo
> # Show topography for different conditions
> colors = 'yellow', 'green'
> title = 'Evoked responses'
> plot_topo(evokeds, color=colors, title=title)
> conditions = [e.comment for e in evokeds]
>  for cond, col, pos in zip(conditions, colors, (0.025, 0.07)):
>     pl.figtext(0.775, pos, cond, color=col, fontsize=12)
> pl.show()
>
> ---------------------------------------------------------------------------
> TypeError                                 Traceback (most recent call last)
> <ipython-input-120-5809c3f526e8> in <module>()
>       5 title = 'Evoked responses'
>       6
> ----> 7 plot_topo(evokeds, color=colors, title=title)
>       8
>       9 conditions = [e.comment for e in evokeds]
>
> TypeError: plot_topo() takes at least 2 arguments (3 given)
>
> Thanks in advance
> Kambiz
> --
> ------------------------------------------------------------
> Kambiz Tavabi PhD
> Institute for Learning & Brain Sciences
> 1715 Columbia Road N
> Portage Bay Building
> Box 357988
> University of Washington
> Seattle, WA 98195-7988
> Tel: 206-221-6415
> ------------------------------------------------------------
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20130627/71df2a9d/attachment.html 


More information about the Mne_analysis mailing list