<div dir="ltr">Hi all,<div>A little quirky behavior I can&#39;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&#39;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 &#39;retroflex_standard&#39;, &#39;dental_deviant&#39;]</div>
</div><div><br></div><div><b>print</b> evokeds</div><div><div>[&lt;Evoked  |  comment : &#39;retroflex_standard&#39;, time : [-0.100000, 0.500000], n_epochs : 79, n_channels x n_times : 204 x 601&gt;, &lt;Evoked  |  comment : &#39;dental_deviant&#39;, time : [-0.100000, 0.500000], n_epochs : 80, n_channels x n_times : 204 x 601&gt;]</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 = &#39;yellow&#39;, &#39;green&#39;</div><div>title = &#39;Evoked responses&#39;</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>&lt;ipython-input-120-5809c3f526e8&gt; in &lt;module&gt;()</div><div>      5 title = &#39;Evoked responses&#39;</div><div>      6 </div>
<div>----&gt; 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 &amp; 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>