<div dir="ltr">Hi all,<div>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?</div>
<div><br></div><div>Here is my code snippet:</div><div><div># Generate list of evoked objects from conditions names</div><div><div>evokeds = [epochs[name].average() for name in 'retroflex_standard', 'dental_deviant']</div>
</div><div><br></div><div><b>print</b> evokeds</div><div><div>[<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>]</div>
</div><div><br></div><div style>From the <a href="http://martinos.org/mne/auto_examples/plot_topo_compare_conditions.html">tutorial</a> </div><div><div>from mne.viz import plot_topo</div><div># Show topography for different conditions<br>
</div><div>colors = 'yellow', 'green'</div><div>title = 'Evoked responses'</div><div>plot_topo(evokeds, color=colors, title=title)<br></div><div>conditions = [e.comment for e in evokeds]<br></div><div>
for cond, col, pos in zip(conditions, colors, (0.025, 0.07)):</div><div> pl.figtext(0.775, pos, cond, color=col, fontsize=12)</div><div>pl.show()<br></div></div><div><br></div><div><div>---------------------------------------------------------------------------</div>
<div>TypeError Traceback (most recent call last)</div><div><ipython-input-120-5809c3f526e8> in <module>()</div><div> 5 title = 'Evoked responses'</div><div> 6 </div>
<div>----> 7 plot_topo(evokeds, color=colors, title=title)</div><div> 8 </div><div> 9 conditions = [e.comment for e in evokeds]</div><div><br></div><div>TypeError: plot_topo() takes at least 2 arguments (3 given)</div>
</div><div><br></div><div style>Thanks in advance</div><div style>Kambiz</div>-- <br>------------------------------------------------------------<br>Kambiz Tavabi PhD<br>Institute for Learning & Brain Sciences<br>1715 Columbia Road N<br>
Portage Bay Building<br>Box 357988<br>University of Washington<br>Seattle, WA 98195-7988<br>Tel: 206-221-6415<br>------------------------------------------------------------
</div></div>