<div dir="ltr">thank you ! <br><div class="gmail_extra"><br clear="all"><br><div class="gmail_quote">2017-11-10 16:04 GMT+01:00 JR KING <span dir="ltr">&lt;<a href="mailto:jeanremi.king@gmail.com" target="_blank">jeanremi.king@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If the aim is to clearly see low frequencies while ranging up to high frequencies, it is probably better to use a logarithmic frequency scale. <div><br></div><div>You can do this by simply changing the axis: e.g.</div><div>







<p class="m_5646037814484713521gmail-p1"><span class="m_5646037814484713521gmail-s3">plt.gca().set_yscale(</span><span class="m_5646037814484713521gmail-s6">&#39;log&#39;</span><span class="m_5646037814484713521gmail-s3">)</span><br></p></div><div><br></div><div>Better, you can do this when you compute the time frequency decomposition. For example in this tutorial (<a href="https://martinos.org/mne/stable/auto_examples/time_frequency/plot_time_frequency_simulated.html" target="_blank">https://martinos.org/mne/<wbr>stable/auto_examples/time_<wbr>frequency/plot_time_frequency_<wbr>simulated.html</a>), change</div><div><pre style="box-sizing:border-box;overflow:auto;font-family:Menlo,Monaco,Consolas,&quot;Courier New&quot;,monospace;font-size:14px;padding:10px;margin-top:0px;margin-bottom:10.5px;line-height:1.42857;word-break:break-all;word-wrap:break-word;color:rgb(123,138,139);border:1px solid rgb(204,204,204);border-radius:4px;background-color:rgb(242,249,255)"><span class="m_5646037814484713521gmail-n" style="box-sizing:border-box">freqs</span> <span class="m_5646037814484713521gmail-o" style="box-sizing:border-box;color:rgb(102,102,102)">=</span> <a href="https://docs.scipy.org/doc/numpy-dev/reference/generated/numpy.arange.html#numpy.arange" title="View documentation for numpy.arange" style="box-sizing:border-box;background-color:transparent;color:rgb(41,122,204);text-decoration-line:none" target="_blank"><span class="m_5646037814484713521gmail-n" style="box-sizing:border-box">np</span><span class="m_5646037814484713521gmail-o" style="box-sizing:border-box;color:rgb(102,102,102)">.</span><span class="m_5646037814484713521gmail-n" style="box-sizing:border-box">arange</span></a><span class="m_5646037814484713521gmail-p" style="box-sizing:border-box">(</span><span class="m_5646037814484713521gmail-mf" style="box-sizing:border-box;color:rgb(32,128,80)">5.</span><span class="m_5646037814484713521gmail-p" style="box-sizing:border-box">,</span> <span class="m_5646037814484713521gmail-mf" style="box-sizing:border-box;color:rgb(32,128,80)">100.</span><span class="m_5646037814484713521gmail-p" style="box-sizing:border-box">,</span> <span class="m_5646037814484713521gmail-mf" style="box-sizing:border-box;color:rgb(32,128,80)">3.</span><span class="m_5646037814484713521gmail-p" style="box-sizing:border-box">)</span></pre></div><div>by</div><div><pre style="box-sizing:border-box;overflow:auto;font-family:Menlo,Monaco,Consolas,&quot;Courier New&quot;,monospace;font-size:14px;padding:10px;margin-top:0px;margin-bottom:10.5px;line-height:1.42857;word-break:break-all;word-wrap:break-word;border:1px solid rgb(204,204,204);border-radius:4px;background-color:rgb(242,249,255)"><span class="m_5646037814484713521gmail-n" style="color:rgb(123,138,139);box-sizing:border-box">freqs</span><font color="#7b8a8b"> </font><span class="m_5646037814484713521gmail-o" style="color:rgb(102,102,102);box-sizing:border-box">=</span><font color="#7b8a8b"> </font><a href="https://docs.scipy.org/doc/numpy-dev/reference/generated/numpy.arange.html#numpy.arange" title="View documentation for numpy.arange" style="box-sizing:border-box;background-color:transparent;text-decoration-line:none" target="_blank"><span class="m_5646037814484713521gmail-n" style="color:rgb(41,122,204);box-sizing:border-box;background-color:transparent;text-decoration-line:none">np</span><span class="m_5646037814484713521gmail-o" style="color:rgb(102,102,102);box-sizing:border-box;background-color:transparent;text-decoration-line:none">.</span><span class="m_5646037814484713521gmail-n" style="box-sizing:border-box;background-color:transparent;text-decoration-line:none"><font color="#3d85c6">l</font></span></a><font color="#3d85c6">ogspace</font><span class="m_5646037814484713521gmail-p" style="color:rgb(123,138,139);box-sizing:border-box">(</span><span class="m_5646037814484713521gmail-mf" style="color:rgb(32,128,80);box-sizing:border-box">np.log10(5.)</span><span class="m_5646037814484713521gmail-p" style="color:rgb(123,138,139);box-sizing:border-box">,</span><font color="#7b8a8b"> </font><span class="m_5646037814484713521gmail-mf" style="color:rgb(32,128,80);box-sizing:border-box">np.log10(100.)</span><span class="m_5646037814484713521gmail-p" style="color:rgb(123,138,139);box-sizing:border-box">,</span><font color="#7b8a8b"> </font><span class="m_5646037814484713521gmail-mf" style="color:rgb(32,128,80);box-sizing:border-box">32</span><span class="m_5646037814484713521gmail-p" style="color:rgb(123,138,139);box-sizing:border-box">)</span></pre></div><div>HTH</div><span class="HOEnZb"><font color="#888888"><div>JR</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 10 November 2017 at 09:37, Chris Holdgraf <span dir="ltr">&lt;<a href="mailto:choldgraf@berkeley.edu" target="_blank">choldgraf@berkeley.edu</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">Yeah I usually do this by creating *two* separate pcolor plots, and then arranging the axes so that it *looks* like they&#39;re part of the same axis w/ a break in the middle<span class="m_5646037814484713521HOEnZb"><font color="#888888"><br><div class="m_5646037814484713521m_-5897173541281134114GmSign">-- <br></div></font></span></div><div class="m_5646037814484713521HOEnZb"><div class="m_5646037814484713521h5"><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 10, 2017 at 3:24 AM Jérémy Giroud &lt;<a href="mailto:jeremy.giroud@gmail.com" target="_blank">jeremy.giroud@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">thanks !</div><div dir="ltr"><br><div class="gmail_extra"><br clear="all"><br><div class="gmail_quote">2017-11-09 21:07 GMT+01:00 Alexandre Gramfort <span dir="ltr">&lt;<a href="mailto:alexandre.gramfort@inria.fr" target="_blank">alexandre.gramfort@inria.fr</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
<br>
you can use pcolor eg<br>
<a href="https://matplotlib.org/examples/pylab_examples/pcolor_demo.html" rel="noreferrer" target="_blank">https://matplotlib.org/example<wbr>s/pylab_examples/pcolor_demo.<wbr>html</a><br>
but a simpler option would be to put np.nan in values you don&#39;t want<br>
to plot and matplotlib<br>
with mask it.<br>
<br>
HTH<br>
Alex<br>
<div><div class="m_5646037814484713521m_-5897173541281134114m_-5851964167809014404h5"><br>
On Thu, Nov 9, 2017 at 6:58 PM, Jérémy Giroud &lt;<a href="mailto:jeremy.giroud@gmail.com" target="_blank">jeremy.giroud@gmail.com</a>&gt; wrote:<br>
&gt; Hello all,<br>
&gt;<br>
&gt; Do you know if it is possible to crop a tfr plot like in the attached<br>
&gt; picture to get rid of unwanted frequency bands. Thanks in advance.<br>
&gt;<br>
&gt; Jeremy<br>
&gt;<br>
&gt;<br>
</div></div>&gt; ______________________________<wbr>_________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.e<wbr>du</a><br>
&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.e<wbr>du/mailman/listinfo/mne_analys<wbr>is</a><br>
&gt;<br>
&gt;<br>
&gt; The information in this e-mail is intended only for the person to whom it is<br>
&gt; addressed. If you believe this e-mail was sent to you in error and the<br>
&gt; e-mail<br>
&gt; contains patient information, please contact the Partners Compliance<br>
&gt; HelpLine at<br>
&gt; <a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/compli<wbr>anceline</a> . If the e-mail was sent to you in<br>
&gt; error<br>
&gt; but does not contain patient information, please contact the sender and<br>
&gt; properly<br>
&gt; dispose of the e-mail.<br>
&gt;<br>
<br>
______________________________<wbr>_________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.e<wbr>du</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.e<wbr>du/mailman/listinfo/mne_analys<wbr>is</a></blockquote></div><br></div></div>
______________________________<wbr>_________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.e<wbr>du</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.e<wbr>du/mailman/listinfo/mne_analys<wbr>is</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" rel="noreferrer" target="_blank">http://www.partners.org/compli<wbr>anceline</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>
</blockquote></div>
</div></div><br>______________________________<wbr>_________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.e<wbr>du</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.e<wbr>du/mailman/listinfo/mne_analys<wbr>is</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" rel="noreferrer" target="_blank">http://www.partners.org/compli<wbr>anceline</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></div><br>______________________________<wbr>_________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.<wbr>edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.<wbr>edu/mailman/listinfo/mne_<wbr>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" rel="noreferrer" target="_blank">http://www.partners.org/<wbr>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>