- Brain.add_ndvar(ndvar, cmap=None, vmin=None, vmax=None, smoothing_steps=None, colorbar=False, time_label='ms', lighting=False, contours=None, alpha=1, remove_existing=False)
Add data layer form an NDVar
ndvar (NDVar ([case,] source[, time])) – NDVar with SourceSpace dimension and optional time dimension. If it contains a
Casedimension, the average over cases is displayed. Values outside of the source-space, as well as masked values are set to 0, assuming a colormap in which 0 is transparent.
cmap (str | list of matplotlib colors | array) – Colormap. Can be the name of a matplotlib colormap, a list of colors, or a custom lookup table (an n x 4 array with RBGA values between 0 and 255).
bool) – Add a colorbar to the figure (use
.plot_colorbar()to plot a colorbar separately).
bool) – The data overlay is affected by light sources (default
False, i.e. data overlays appear luminescent).
float) – Alpha value for the data layer (0 = tranparent, 1 = opaque).
bool) – Remove data layers that have been added previously (default False).