Get higher resolution images

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)]'}
[image: grafik.png]
Best regards,
Kebir

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

External Email - Use Caution

Dear Denis,

I have tried this both with Ipython and Jupyter notebook as you can see
below:

[image: 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

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

External Email - Use Caution

Dear Denis,

thanks. I got it working!

Best regards
Kebir

External Email - Use Caution

Excellent news!

Denis