set start_time and end_time and timw_unit for plot_compare_evokeds

External Email - Use Caution

Hi
I created epocks array from some eeg data for each subject and then I
concanetated all of them to calculate average and erp and then plot two
conditions using plot_compare_evokeds. But it adds some zero before and
after signal that I dont want it. for example I have signal from 0 to 1.4
s. but it shows from 0 to 5(some zero before and after main signal and main
signal in the middle). I didn't find any parameter to set time. Als I want
show x axis in millisecond unit.
I should use plot_compare_evokeds because I want show both of them in one
figure.
Thank's
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190731/d8c0a490/attachment.html

External Email - Use Caution

Hi,

You can use standard matplotlib commands for this. For the first, issue,
use plt.xlim((0, 1.4)).

For the second issue, you have to set the tick labels. Perhaps this example
gives you a good start:
https://matplotlib.org/examples/pylab_examples/custom_ticker1.html

Best,
Mainak