[Mne_analysis] mne-python: simple topographic plot
Emanuele Olivetti
emanuele at relativita.com
Tue Apr 23 04:56:48 EDT 2013
Hi Denis,
Thank you for pointing me to those PRs. I had a brief look to them but, to be
honest, I did not
find what I was looking for. In the the meanwhile I coded this simple function
which use
matplotlib's griddata and pcolormesh to create a topography, following this:
http://stackoverflow.com/questions/3864899/resampling-irregularly-spaced-data-to-a-regular-grid-in-python
Please find attached the short topography code and jpg example. Beware: the code
is ugly :).
But maybe someone else might find it useful.
Best,
Emanuele
On 04/22/2013 03:28 PM, Denis-Alexander Engemann wrote:
> Hi Emanuele,
>
> take a look at this PR by Alex:
> https://github.com/mne-tools/mne-python/pull/392
>
> and this one by Christian:
> https://github.com/mne-tools/mne-python/pull/404
>
> It shouldn't be difficult to merge this soon and add it as an alternative to
> the viz module.
> However it seems the focus has been put on other things in the last months,
> especially as nobody asked for this.
> We now have a good reason for speeding up ;-)
>
> Cheers,
> Denis
>
>
> On Mon, Apr 22, 2013 at 2:37 PM, Emanuele Olivetti <emanuele at relativita.com
> <mailto:emanuele at relativita.com>> wrote:
>
> Hi,
>
> First of all thank you for mne-python: it is very well done and effective!
>
> I'd like to create simple topographic plots from the results of statistical
> tests that I am conducting on gradiometer data (evoked responses) of our
> Elekta
> Neuromag. From what I see in the documentation many rich functions are
> available in the mne.viz module but I cannot find the simple one that given a
> coefficient for each channel (e.g. t-statistic between two conditions) and a
> layout ('Vectorview-grad.lout', in my case, if I understand correctly), plots
> the topography like
>
> http://dev.pymvpa.org/_images/ex_topo_plot.png
> http://fieldtrip.fcdonders.nl/_media/tutorial/eventrelatedaveraging/topoplot_fic_3feb09_erf.png
>
> or like this mne-python plot, but without clickable sensors and timecourses:
>
> http://martinos.org/mne/auto_examples/plot_topography.html
>
> ...a simple colored box for each channel would suffice.
>
> Any hints?
>
> Best,
>
> Emanuele
>
> _______________________________________________
> 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
>
>
> 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.
>
>
>
>
> ------------------------------------------------------------------------------------------------
> ------------------------------------------------------------------------------------------------
> Forschungszentrum Juelich GmbH
> 52425 Juelich
> Sitz der Gesellschaft: Juelich
> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
> Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
> Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
> Prof. Dr. Sebastian M. Schmidt
> ------------------------------------------------------------------------------------------------
> ------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20130423/6f4c52ea/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: topography.py
Type: text/x-python
Size: 1725 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20130423/6f4c52ea/attachment.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: topography_test.jpg
Type: image/jpeg
Size: 40310 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20130423/6f4c52ea/attachment.jpg
More information about the Mne_analysis
mailing list