Basemap -> headmap

Hi all,

I use matplotlib for looking at EEG (brainwave) data and I was looking for
a good way to do headmap plots of various things. I was wondering if
anyone has done this before. The basemap toolkit looks like it's done a
lot of the hard work, so I was planning on hacking on that to get it to do
what I need but I figured I should check here first to see that I'm not
reinventing a wheel that someone might have lying around. John, I know
you've done EEG stuff, any pointers?

Cheers,

Tim Leslie

Tim Leslie wrote:

Hi all,

I use matplotlib for looking at EEG (brainwave) data and I was looking for
a good way to do headmap plots of various things. I was wondering if
anyone has done this before. The basemap toolkit looks like it's done a
lot of the hard work, so I was planning on hacking on that to get it to do
what I need but I figured I should check here first to see that I'm not
reinventing a wheel that someone might have lying around. John, I know
you've done EEG stuff, any pointers?

Cheers,

Tim Leslie

What's a headma?

-Jeff

···

--
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
325 Broadway Web : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124

Tim Leslie wrote:

>Hi all,
>
>I use matplotlib for looking at EEG (brainwave) data and I was looking for
>a good way to do headmap plots of various things. I was wondering if
>anyone has done this before. The basemap toolkit looks like it's done a
>lot of the hard work, so I was planning on hacking on that to get it to do
>what I need but I figured I should check here first to see that I'm not
>reinventing a wheel that someone might have lying around. John, I know
>you've done EEG stuff, any pointers?
>
>Cheers,
>
>Tim Leslie
>
>
What's a headma?

A headmap is visualisation where you plot certain values such as signal
power over the scalp. When you do an EEG recording you're often interested
in how certain values vary with location across the head and a headmap is
a way to view this.

If you think of the head as a perfect sphere, then I'd like to plot values
at certain locations in the same way that using the basemap toolkit you
can plot values of say, temperature, at different locations on the earth.

Tim

-Jeff

--
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
325 Broadway Web : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124

`-

···

On Sun, 24 Apr 2005, Jeff Whitaker <jswhit@...146...> wrote...

Tim Leslie wrote:

···

On Sun, 24 Apr 2005, Jeff Whitaker <jswhit@...146...> wrote...

Tim Leslie wrote:

Hi all,

I use matplotlib for looking at EEG (brainwave) data and I was looking for
a good way to do headmap plots of various things. I was wondering if
anyone has done this before. The basemap toolkit looks like it's done a
lot of the hard work, so I was planning on hacking on that to get it to do
what I need but I figured I should check here first to see that I'm not
reinventing a wheel that someone might have lying around. John, I know
you've done EEG stuff, any pointers?

Cheers,

Tim Leslie

What's a headma?
   
A headmap is visualisation where you plot certain values such as signal
power over the scalp. When you do an EEG recording you're often interested
in how certain values vary with location across the head and a headmap is
a way to view this.

If you think of the head as a perfect sphere, then I'd like to plot values
at certain locations in the same way that using the basemap toolkit you
can plot values of say, temperature, at different locations on the earth.

Tim

Thanks for the explanation Tim. Sounds like it should work out of the box, provided that the map projection you need is supported. If not, I'll try adding it. Obviously, you don't need to plot coastlines and political boundaries, but is there something you would like to plot in their stead?

-Jeff

--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/CDC R/CDC1 Email : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory

Thanks for the explanation Tim. Sounds like it should work out of the
box, provided that the map projection you need is supported. If not,
I'll try adding it. Obviously, you don't need to plot coastlines and
political boundaries, but is there something you would like to plot in
their stead?

There are a standard set of locations for scalp electrodes when measuring
EEG data, so if we could represent them as small, circular countries,
that'd be kinda cool. Also a couple of ovals/triangles to represent
ears/eyes/nose would be useful.

I'm a little busy for the coming week but I'll come back to this little
project once things settle down and I'll get back to you on how well it
works.

Thanks in advance for all the work you've done in getting the library to
the stage it is.

Tim

-Jeff

--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/CDC R/CDC1 Email : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory

`-

···

On Mon, 25 Apr 2005, Jeff Whitaker <jswhit@...146...> wrote...

Is there a way to obtain the version number of Matplotlib from the python command line?
Such as "pylab.__version__'" for example, but that does not seem to work.

Thanks...

···

-------------------------------------
Daniel Wheeler
Telephone: (301) 975-8358

Daniel Wheeler wrote:

Is there a way to obtain the version number of Matplotlib from the python command line?
Such as "pylab.__version__'" for example, but that does not seem to work.

matplotlib.__version__

···

--
Robert Kern
rkern@...376...

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter