<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" id="yui_3_16_0_ym19_1_1463078867745_2934">Hello Fieldtrip Community,</div><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" id="yui_3_16_0_ym19_1_1463078867745_2935"><br id="yui_3_16_0_ym19_1_1463078867745_2936"></div><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" id="yui_3_16_0_ym19_1_1463078867745_2937" dir="ltr">I do realize this is probably really basic, but I was following the tutorial on analyzing spike and LFP data: <a href="http://www.fieldtriptoolbox.org/tutorial/spikefield" title="http://www.fieldtriptoolbox.org/tutorial/spikefieldCmd+Click or tap to follow the link" id="yui_3_16_0_ym19_1_1463078867745_2938" title-off="">http://www.fieldtriptoolbox.org/tutorial/spikefield</a>. I've followed the tutorial almost exactly (with inconsequential changes) using the sample data provided in the tutorial. </div><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" id="yui_3_16_0_ym19_1_1463078867745_2939"><br id="yui_3_16_0_ym19_1_1463078867745_2940"></div><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" id="yui_3_16_0_ym19_1_1463078867745_2941">It all works except for the STA plot for pre-stimulus. I get the correct plot as shown in the tutorial for my post-stimulus plot but then for some reason get the same thing for my pre-stimulus plot, which doesn't make sense.</div><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" id="yui_3_16_0_ym19_1_1463078867745_2942"><br id="yui_3_16_0_ym19_1_1463078867745_2943"></div><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" id="yui_3_16_0_ym19_1_1463078867745_2944">I have no idea what is causing this. The only differences I see between the two are the cfg.latency settings and all else is the same.</div><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" id="yui_3_16_0_ym19_1_1463078867745_2945"><br id="yui_3_16_0_ym19_1_1463078867745_2946"></div><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" id="yui_3_16_0_ym19_1_1463078867745_2947"></div><div style="margin-top: 0px; margin-bottom: 0px;" id="yui_3_16_0_ym19_1_1463078867745_2948"> pre: cfg.latency = [-2.75 0];</div><div id="yui_3_16_0_ym19_1_1463078867745_2949"></div><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" id="yui_3_16_0_ym19_1_1463078867745_2950"></div><div style="margin-top: 0px; margin-bottom: 0px;" id="yui_3_16_0_ym19_1_1463078867745_2951"> post: cfg.latency = [0.3 10];</div><div id="yui_3_16_0_ym19_1_1463078867745_2952"></div><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" id="yui_3_16_0_ym19_1_1463078867745_2953"><br id="yui_3_16_0_ym19_1_1463078867745_2954"></div><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" id="yui_3_16_0_ym19_1_1463078867745_2955">I've attached my script (as it is small) for reference. The plots and sample data are in the tutorial.</div><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" id="yui_3_16_0_ym19_1_1463078867745_2956"><br id="yui_3_16_0_ym19_1_1463078867745_2957"></div><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" dir="ltr" id="yui_3_16_0_ym19_1_1463078867745_2958">Thanks in advance!</div></div></body></html>