<div dir="ltr">Hi Eric,<div><br></div><div>With the ax.set_title line in either position I get the same behavior i.e., X axes with butterfly plot &amp; default axis title generated by evoked.plot and X blank axes with the desired title.</div>
<div><br></div><div>Kambiz</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 31, 2013 at 4:39 PM, Eric Larson <span dir="ltr">&lt;<a href="mailto:larson.eric.d@gmail.com" target="_blank">larson.eric.d@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey Kambiz,<div><br></div><div>mne-python will overwrite your axis title with its own. Does it work if you move the line ax.set_title after the evokeds.plot() line?</div>
<div><br></div><div>The &quot;titles&quot; keywoard argument not working might be a bug, I&#39;d have to look (Alex, Denis?).</div>

<div><br></div><div>Eric</div><div><br></div>
<div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Jul 31, 2013 at 4:34 PM, Kambiz Tavabi <span dir="ltr">&lt;<a href="mailto:ktavabi@uw.edu" target="_blank">ktavabi@uw.edu</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">


<div dir="ltr"><div>Greetings</div>I am using the following loop to plot the evoked response iterating over several different conditions:<br><div># Create the figure (Letter format)</div><div>for j, cond in enumerate([&#39;Known&#39;, &#39;Known-ctrl&#39;, &#39;Unknown&#39;, &#39;Unkown-ctrl&#39;]):</div>




<div>    figure(num=j, figsize=(8.5,11), dpi=100)</div><div>    ax = subplot2grid((4, 2), (j, 0), rowspan=1, colspan=2)</div><div>    ax.set_title(r&quot;$MEG evoked field, %s trials$&quot; % cond, fontsize=16)</div><div>




    evokeds[j].plot(picks=mag_picks, axes=ax)</div><div>    # Save to PDF</div><div>    #savefig(&quot;%s.pdf&quot; % TITLE)</div><div><br></div><div>I get the figure(s) I want but I cannot figure out how to set the title. The above ax.set_title statement seems to do nothing, nor does evokeds[j].plot(picks=mag_picks, axes=ax, titles=event_ids); where event_ids = {&#39;Known&#39;: 1, &#39;Known-ctrl&#39;: 2, &#39;Unknown&#39;: 3, &#39;Unkown-ctrl&#39;: 4}. In both case the axes title defaults to channel type e.g., Magnetometers (102 channels). If I follow the example <a href="http://martinos.org/mne/auto_examples/plot_from_raw_to_multiple_epochs_to_evoked.html" target="_blank">here</a> then the above code will generate additional empty axes with the names I want for each iteration; i.e., inserting the statement: `title (&quot;MEG evoked field, %s trials&quot; % cond)` into the loop. Could someone please explain this behavior? Thanks in advance. Kambiz</div>



<span><font color="#888888">
<div><br></div>-- <br><div dir="ltr">------------------------------------------------------------<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: <a href="tel:206-685-6173" value="+12066856173" target="_blank">206-685-6173</a><br>------------------------------------------------------------</div>
</font></span></div>
<br></div></div>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">------------------------------------------------------------<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-685-6173<br>------------------------------------------------------------</div>
</div>