comparing spatio-temporal maps

External Email - Use Caution

Hi everyone,
I was wondering how I could see/compare the dynamics of two (or multiple) evoked responses scalp maps.
Is there a way to use ? plot_topomap ? with several evoked objects, so that scrolling a single time cursor would update all scalp maps, and colorscale would handle the global amplitude range (across objects)
or has anyone already written some code that could do that or so?
Many thanks!
fran?oise

External Email - Use Caution

hi Fran?oise,

in a notebook you can use a slider using ipywidgets like:

from ipywidgets import interact

@interact(time=(evoked.times[0], evoked.times[-1], 0.01),
          continuous_update=False)
def plot_topo(time):
    evoked.plot_topomap(times=[time], size=3., vmin=-250., vmax=250.)

External Email - Use Caution

Hi Alex, thanks for your answer

my question was more about the joint plots actually than on the time slider (which I have using plot_topomap(times=?interactive?) )
basically, how could I synch these two plots for instance ?
thanks!

Le 16 sept. 2020 ? 14:01, Alexandre Gramfort <alexandre.gramfort at inria.fr> a ?crit :

       External Email - Use Caution

hi Fran?oise,

in a notebook you can use a slider using ipywidgets like:

from ipywidgets import interact

@interact(time=(evoked.times[0], evoked.times[-1], 0.01),
         continuous_update=False)
def plot_topo(time):
   evoked.plot_topomap(times=[time], size=3., vmin=-250., vmax=250.)

--

you need to modify it to plot multiple evoked jointly

HTH
Alex

_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200916/99cdc6ce/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d?e?cran 2020-09-16 a? 14.36.04.png
Type: image/png
Size: 135278 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200916/99cdc6ce/attachment-0001.png

External Email - Use Caution

hi,

it is currently not implemented. Can you open a feature request issue
on github?

Alex

        External Email - Use Caution

Hi Alex, thanks for your answer

my question was more about the joint plots actually than on the time
slider (which I have using plot_topomap(times=?interactive?) )
basically, how could I synch these two plots for instance ?
thanks!

Le 16 sept. 2020 ? 14:01, Alexandre Gramfort <alexandre.gramfort at inria.fr>
a ?crit :

       External Email - Use Caution

hi Fran?oise,

in a notebook you can use a slider using ipywidgets like:

from ipywidgets import interact

@interact(time=(evoked.times[0], evoked.times[-1], 0.01),
         continuous_update=False)
def plot_topo(time):
   evoked.plot_topomap(times=[time], size=3., vmin=-250., vmax=250.)

--

you need to modify it to plot multiple evoked jointly

HTH
Alex

_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200916/e28aacaa/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d?e?cran 2020-09-16 a? 14.36.04.png
Type: image/png
Size: 135278 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200916/e28aacaa/attachment-0001.png

External Email - Use Caution

ok !

Le 16 sept. 2020 ? 14:42, Alexandre Gramfort <alexandre.gramfort at inria.fr> a ?crit :

        External Email - Use Caution

hi,

it is currently not implemented. Can you open a feature request issue
on github?

Alex

        External Email - Use Caution

Hi Alex, thanks for your answer

my question was more about the joint plots actually than on the time slider (which I have using plot_topomap(times=?interactive?) )
basically, how could I synch these two plots for instance ?
thanks!

<Capture d?e?cran 2020-09-16 a? 14.36.04.png>
  

Le 16 sept. 2020 ? 14:01, Alexandre Gramfort <alexandre.gramfort at inria.fr <mailto:alexandre.gramfort at inria.fr>> a ?crit :

       External Email - Use Caution

hi Fran?oise,

in a notebook you can use a slider using ipywidgets like:

from ipywidgets import interact

@interact(time=(evoked.times[0], evoked.times[-1], 0.01),
         continuous_update=False)
def plot_topo(time):
   evoked.plot_topomap(times=[time], size=3., vmin=-250., vmax=250.)

--

you need to modify it to plot multiple evoked jointly

HTH
Alex

_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu <mailto:Mne_analysis at nmr.mgh.harvard.edu>
Mne_analysis Info Page

_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu <mailto: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
Mne_analysis Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200916/f0b4cdb1/attachment.html