[Mne_analysis] Automatically plotting and saving numerous stc files

Mainak Jas mainakjas at gmail.com
Thu Feb 2 21:51:26 EST 2017
Search archives:

Hi Gladia,

You can try to run it in headless mode using xvfb
<https://en.wikipedia.org/wiki/Xvfb>. You'll need to play around with it a
bit to make it work though.

Mainak

On Wed, Feb 1, 2017 at 11:47 PM, Gladia Hotan <gladiach at gmail.com> wrote:

> Hi,
>
> I need to save numerous plots of source estimates. I have a loop over the
> epochs I need to plot, and in each loop I use
>
> brainobject = stc.plot(...)
> brainobject.save(...)
> brainobject.close()
>
> However, this doesn't seem to work unless I have a graphical desktop open
> or am working directly at a workstation. If I execute the code through a
> terminal, it fails because the visualization cannot run.
>
> Furthermore, if I am running the code from a Python IDE (Pycharm) and the
> TVTK viewer window is minimized, the image saved is a screenshot of the
> part of the screen that's within the boundaries of the box where the TVTK
> viewer window would be if it were maximized, instead of an image of the
> brain.
>
> Is there a way to get around these issues, so that I can automatically
> plot and save many brain images without needing to use a GUI or IDE?
>
> Thank you and Best Regards,
> Gladia
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170203/eef984a6/attachment.html 


More information about the Mne_analysis mailing list