Skip to content

Commit

Permalink
Plot title of excluded components in gray (mne-tools#4285)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrnr authored and agramfort committed Jul 15, 2017
1 parent b69afd1 commit b9f46fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mne/viz/topomap.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,10 @@ def plot_ica_components(ica, picks=None, ch_type=None, res=64,
if merge_grads:
from ..channels.layout import _merge_grad_data
for ii, data_, ax in zip(picks, data, axes):
ax.set_title('IC #%03d' % ii, fontsize=12)
if ii in ica.exclude:
ax.set_title('IC #%03d' % ii, fontsize=12, color='gray')
else:
ax.set_title('IC #%03d' % ii, fontsize=12)
data_ = _merge_grad_data(data_) if merge_grads else data_
vmin_, vmax_ = _setup_vmin_vmax(data_, vmin, vmax)
im = plot_topomap(data_.flatten(), pos, vmin=vmin_, vmax=vmax_,
Expand Down

0 comments on commit b9f46fa

Please sign in to comment.