<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr"><p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">Turns out I didn't set&nbsp;</span><span style="margin: 0px; font-size: 15px; font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; color: rgb(32, 31, 30); background-color: rgb(255, 255, 255); display: inline !important">`baseline=None`,&nbsp;
 indeed I don't want it to be baseline corrected, this solved the problem, thanks a lot !</span><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> mne_analysis-bounces@nmr.mgh.harvard.edu &lt;mne_analysis-bounces@nmr.mgh.harvard.edu&gt; on behalf of Eric Larson &lt;larson.eric.d@gmail.com&gt;<br>
<b>Sent:</b> Friday, June 19, 2020 2:33 PM<br>
<b>To:</b> Discussion and support forum for the users of MNE Software &lt;mne_analysis@nmr.mgh.harvard.edu&gt;<br>
<b>Subject:</b> Re: [Mne_analysis] extracting high frequency broadband (HFB) envelope</font>
<div>&nbsp;</div>
</div>
<div>
<p><span style="padding:3px 10px; border-radius:5px; color:#ffffff; font-weight:bold; display:inline-block; background-color:#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p></p>
<div dir="ltr">
<div class="x_gmail_quote">
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div><span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">Strangely once I epoch the envelope with mne.epoch() using some equally spaced stimulus releated events, the resulting epochs contain some negative value in
 their entries. But is does not seems that epoching shift the origin x axis or does it?&nbsp;</span></div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Did you set `baseline=None`? The <a href="https://mne.tools/dev/generated/mne.Epochs.html#mne.Epochs">
default</a> is `baseline=(None, 0.)` which would mean that your data are being baseline corrected (which you probably don't want).</div>
<div><br>
</div>
<div>Eric</div>
<div><br>
</div>
</div>
</div>
</div>
</body>
</html>