bug colorbar plot_topomap() function

Hi community,

I just plotted the attached topographic voltage maps using
the plot_topomap() function:

t = [0.25,0.35, 0.45, 0.55, 0.65, 0.75, 0.85]

evoked = EvokedArray(my_data, info=info, tmin=-0.2)
evoked.plot_topomap(ch_type = 'eeg', times = t, vmin = 0.0, vmax = 1.5,
scale = 1,average = 0.1,contours = 10)

Seems that there's a bug with the colorbar: the color scale does not match
the first 3 plots (there should not be any blue color). Any idea what's
going on?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20161025/e491ef31/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: figure.png
Type: image/png
Size: 87600 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20161025/e491ef31/attachment-0001.png

Hi Mathieu,

can you share the -ave.fif file to replicate?

thanks
Alex

Hi Alex,

Don't know where to get the -ave.fif file. I solved the problem by
specifying the colormap:
evoked.plot_topomap(ch_type = 'eeg', times = t, vmin = 0.0, vmax = 1.5,
scale = 1,average = 0.1,contours = 10, *cmap = "plasma"*). See attached
plot.

I think there is some weird default color scaling when the colormap is not
specified.

Best,
Mat

2016-10-26 0:04 GMT-05:00 Alexandre Gramfort <
alexandre.gramfort at telecom-paristech.fr>:

Hi Mathieu,

can you share the -ave.fif file to replicate?

thanks
Alex

> Hi community,
>
> I just plotted the attached topographic voltage maps using the
> plot_topomap() function:
>
> t = [0.25,0.35, 0.45, 0.55, 0.65, 0.75, 0.85]
>
> evoked = EvokedArray(my_data, info=info, tmin=-0.2)
> evoked.plot_topomap(ch_type = 'eeg', times = t, vmin = 0.0, vmax = 1.5,
> scale = 1,average = 0.1,contours = 10)
>
> Seems that there's a bug with the colorbar: the color scale does not
match
> the first 3 plots (there should not be any blue color). Any idea what's
> going on?
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> Mne_analysis Info Page
>
>
> 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
> MyComplianceReport.com: Compliance and Ethics Reporting . 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.
>
_______________________________________________
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/20161026/3a198d68/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Exp1_CS_fine_grained_topo.png
Type: image/png
Size: 84698 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20161026/3a198d68/attachment-0001.png

please do :

evoked.save('debug-ave.fif')

and send us the file.

let's try to have this fixed for everyone.

thanks
Alex

All right. Attached is the debug file.

Cheers,
Mat

2016-10-26 8:23 GMT-05:00 Alexandre Gramfort <
alexandre.gramfort at telecom-paristech.fr>:

please do :

evoked.save('debug-ave.fif')

and send us the file.

let's try to have this fixed for everyone.

thanks
Alex

> Hi Alex,
>
> Don't know where to get the -ave.fif file. I solved the problem by
> specifying the colormap:
> evoked.plot_topomap(ch_type = 'eeg', times = t, vmin = 0.0, vmax = 1.5,
> scale = 1,average = 0.1,contours = 10, cmap = "plasma"). See attached
plot.
>
> I think there is some weird default color scaling when the colormap is
not
> specified.
>
> Best,
> Mat
>
> 2016-10-26 0:04 GMT-05:00 Alexandre Gramfort
> <alexandre.gramfort at telecom-paristech.fr>:
>>
>> Hi Mathieu,
>>
>> can you share the -ave.fif file to replicate?
>>
>> thanks
>> Alex
>>
>>
>> > Hi community,
>> >
>> > I just plotted the attached topographic voltage maps using the
>> > plot_topomap() function:
>> >
>> > t = [0.25,0.35, 0.45, 0.55, 0.65, 0.75, 0.85]
>> >
>> > evoked = EvokedArray(my_data, info=info, tmin=-0.2)
>> > evoked.plot_topomap(ch_type = 'eeg', times = t, vmin = 0.0, vmax =
1.5,
>> > scale = 1,average = 0.1,contours = 10)
>> >
>> > Seems that there's a bug with the colorbar: the color scale does not
>> > match
>> > the first 3 plots (there should not be any blue color). Any idea
what's
>> > going on?
>> >
>> > _______________________________________________
>> > Mne_analysis mailing list
>> > Mne_analysis at nmr.mgh.harvard.edu
>> > Mne_analysis Info Page
>> >
>> >
>> > 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
>> > MyComplianceReport.com: Compliance and Ethics Reporting . 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.
>> >
>> _______________________________________________
>> 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
>
>
> 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
> MyComplianceReport.com: Compliance and Ethics Reporting . 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.
>
_______________________________________________
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/20161026/e6831bc8/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug-ave.fif
Type: application/fractals
Size: 25588 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20161026/e6831bc8/attachment-0001.bin

Ok I could replicate. Issue at:

https://github.com/mne-tools/mne-python/issues/3701

Alex