[Mne_analysis] mne-python saving epochs drop log plot

Alexandre Gramfort alexandre.gramfort at telecom-paristech.fr
Sun Jan 26 07:35:34 EST 2014
Search archives:

hi Kam,

plt.savefig(info.get('filename')[:-4] + '_droplog.pdf', dpi=100, format='pdf')

works fine on my machine.

Note that I added the .pdf extension.

Alex

On Sat, Jan 25, 2014 at 8:01 PM, Kambiz Tavabi <ktavabi at uw.edu> wrote:
> Hi Alex,
> I've tried this as well with same result i.e., blank file. Here is what I am
> doing:
>
> import matplotlib.pyplot as plt
> _ = epochs.drop_bad_epochs()
> plot_drop_log(epochs.drop_log, subject=subj)
> plt.savefig(info.get('filename')[:-4] + '_droplog', dpi=100, format='pdf')
>
> I can verify this works because I see the figure window and appropriate drop
> plot. The documentation says plot_drop_log returns a float, so I am not sure
> where in the ether the associated figure window ends up. I am using
> mne-python version 0,8.
>
> cheers,
> Kam
>
> ------------------------------------------------------------
> Kambiz Tavabi PhD
> Institute for Learning & Brain Sciences
> 1715 Columbia Road N
> Portage Bay Building
> Box 357988
> University of Washington
> Seattle, WA 98195-7988
> Tel: 206-685-6173
> ------------------------------------------------------------
>
>
> On Sat, Jan 25, 2014 at 1:56 AM, Alexandre Gramfort
> <alexandre.gramfort at telecom-paristech.fr> wrote:
>>
>> hi Kam,
>>
>> with the current version of mne-python you can do:
>>
>> epochs.plot_drop_log()
>> import matplotlib.pyplot as plt
>> plt.savefig('fig.pdf')
>>
>> HTH
>> Alex
>
>



More information about the Mne_analysis mailing list