Skip to content
Merged

FIX cmap #10593

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mne/viz/_brain/colormap.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ def get_fill_colors(cols, n_fill):
if ind.size > 0:
# choose the two colors between which there is the large step
ind = ind[0] + 1
fillcols = np.r_[np.tile(cols[ind, :], (n_fill / 2, 1)),
fillcols = np.r_[np.tile(cols[ind, :], (n_fill // 2, 1)),
np.tile(cols[ind + 1, :],
(n_fill - n_fill / 2, 1))]
(n_fill - n_fill // 2, 1))]
else:
# choose a color from the middle of the colormap
fillcols = np.tile(cols[int(cols.shape[0] / 2), :], (n_fill, 1))
Expand Down