mne.viz.plot_source_estimates colorbar limits incorrect

External Email - Use Caution

Hi,

I am using mne.viz.plot_source_estimates from mne version 0.15.2 and I am
calling it as follows:

mne.viz.plot_source_estimates(src, subject=subject_id, background=bk,
surface='inflated', hemi='lh', views='lat',
clim={'kind': 'value', 'lims': [0.0, 0.5, 1.0]}, colormap='jet',
subjects_dir=SUBJ_DIR,
smoothing_steps=smoothing_steps, spacing='ico4', backend='matplotlib')

Even though I set the clim kind to 'value' and the limits are set to [0.0,
0.5, 1.0], I observe that the maximum value in src is given the hottest
value of the colormap, even if it is not 1.0. I would like the colors to
reflect the absolute value at each source, not their relative values to
each other.

Is this a bug? Or am I not calling this function correctly?

Thanks

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

External Email - Use Caution

Even though I set the clim kind to 'value' and the limits are set to [0.0,
0.5, 1.0], I observe that the maximum value in src is given the hottest
value of the colormap, even if it is not 1.0. I would like the colors to
reflect the absolute value at each source, not their relative values to
each other.

They should indeed reflect the true rather than relative value at each
source when clim kind is "value" instead of "percent". It's possible there
was some bug in 0.15.2 that has been fixed in 0.16.2 (latest release) or
master. Can you try using latest master to see if this is still a problem?
If it is, please open an issue on GitHub with a small code snippet using
`sample` data that reproduces the problem.

Thanks,
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180723/634a8177/attachment.html