some interactive figures do not appear in debug mode

Hi community,

I have an issue whereby some plots and figures show and others do not. For example, i can plot my EEG continuous data and my ICA components, but not my topo plots or my evoked potentials. I imagine it’s a problem with my matplotlib or other backend libraries, but i haven’t been able to figure it out. It’s a bit annoying because i can’t work with the interactive plots :frowning: Below the versions of my os and packages i think are relevant.

mac os 12.3.1
Python 3.9.13
matplotlib 3.6.2
mne 1.2.3
mne qt browser 0.4.0

In order to have my continuous signal plot working my code starts with:

from mne.viz import set_browser_backend
set_browser_backend('qt')

I call the plots as per tutorials, for example:

ica.plot_sources(forica, show_scrollbars=True, start=500, stop=560, block=False)
ica.plot_components(ch_type='eeg')
evoked.plot(picks=vertex)
mne.viz.plot_compare_evokeds(evodict[i], picks=vertex, combine='mean')

Many thanks for your help,
bissera

Hello,

Are you by any chance using a Jupyter notebook?
In this case you need to enter %matplotlib qt in one of your cells (before the plots). It will change the matplotlib backend from inline to the interactive Qt.

Mathieu

1 Like