[Mne_analysis] Get higher resolution images

Sied Kebir skycrazer at gmail.com
Tue May 7 09:52:01 EDT 2019
Search archives:

        External Email - Use Caution        

Dear Denis,

thanks. I got it working!

Best regards
Kebir
--------------
Dr. med. Sied Kebir
Dahlhauser Str. 46
45279 Essen



Am Fr., 3. Mai 2019 um 23:04 Uhr schrieb Denis A. Engemann <
denis-alexander.engemann at inria.fr>:

>         External Email - Use Caution
>
> Yes,
>
> it seems that you are in Jupyter.
> Can you either prepend %matplotlib in the cell which you do the plotting?
> On success, a window should pop up (it can be behind your web browser).
>
> Alternatively, open an IPython session from the terminal by typing
> “”ipython” and run a script that contains the code from your notebook.
> Note that you can download your notebook as a Python script.
>
> Let me know how it goes.
>
> Denis
>
>
>
>
>
> > On May 3, 2019, at 10:53 PM, Sied Kebir <skycrazer at gmail.com> wrote:
> >
> >         External Email - Use Caution
> >
> >
> > Dear Denis,
> >
> > I have tried this both with Ipython and Jupyter notebook as you can see
> below:
> >
> > <grafik.png>
> > The issue is the plot returns an image instead of an interactive object.
> The quality is rather poor and I cannot resize. Did I miss out on something
> here?
> >
> > Best regards,
> > Kebir
> > --------------
> > Dr. med. Sied Kebir
> > Dahlhauser Str. 46
> > 45279 Essen
> >
> >
> >
> > Am Fr., 3. Mai 2019 um 22:21 Uhr schrieb Denis A. Engemann <
> denis-alexander.engemann at inria.fr>:
> >         External Email - Use Caution
> >
> > Hi Sied,
> >
> > how are you calling raw.plot(), inside Jupyter or inside IPython?
> > The figure should be quite big usually and you can manually resize it
> and there is plenty if interactive features, like moving through time,
> adding channels, superimposing the time series (press “b”) or annotating
> (press “a”).
> > Otherwise, see that the return value of raw.plot() is a maptlotlib
> figure https://matplotlib.org/api/_as_gen/matplotlib.pyplot.figure.html
> > which can be resized and saved to disk.
> >
> > Hope that helps,
> > Denis
> >
> >
> >
> > > On May 3, 2019, at 9:50 PM, Sied Kebir <skycrazer at gmail.com> wrote:
> > >
> > >         External Email - Use Caution
> > >
> > >
> > > Dear all,
> > >
> > > I wonder if the .plot function can produce images of higher resolution
> that can be used for publication purposes for example. After consulting the
> documentation I couldn't find any hint. I tried using matplotlib's savefig
> but it didn't work. Appreciate your help! Thanks.
> > >
> > > I am running IPython with the following specifications:
> > >  'sys_version': '3.6.8 |Anaconda, Inc.| (default, Feb 21 2019,
> 18:30:04) [MSC '
> > >                 'v.1916 64 bit (AMD64)]'}
> > > <grafik.png>
> > > Best regards,
> > > Kebir
> > > --------------
> > > Dr. med. Sied Kebir
> > > Dahlhauser Str. 46
> > > 45279 Essen
> > >
> > > _______________________________________________
> > > Mne_analysis mailing list
> > > Mne_analysis at nmr.mgh.harvard.edu
> > > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
> >
> >
> > _______________________________________________
> > Mne_analysis mailing list
> > Mne_analysis at nmr.mgh.harvard.edu
> > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
> > _______________________________________________
> > Mne_analysis mailing list
> > Mne_analysis at nmr.mgh.harvard.edu
> > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190507/d6a9cf9b/attachment.html 


More information about the Mne_analysis mailing list