visbrain.objects.TopoObj.set_data¶
- TopoObj.set_data(data, levels=None, level_colors='white', cmap='viridis', clim=None, vmin=None, under='gray', vmax=None, over='red')[source][source]¶
Set data to the topoplot.
- Parameters:
- dataarray_like
Array of data of shape (n_channels)
- levelsarray_like/int | None
The levels at which the isocurve is constructed.
- level_colorsstring/array_like | ‘white’
The color to use when drawing the line. If a list is given, it must be of shape (Nlev), if an array is given, it must be of shape (Nlev, …). and provide one color per level (rgba, colorname). By default, all levels are whites.
- cmapstring | None
Matplotlib colormap (like ‘viridis’, ‘inferno’…).
- climtuple/list | None
Colorbar limit. Every values under / over clim will clip.
- vminfloat | None
Every values under vmin will have the color defined using the under parameter.
- vmaxfloat | None
Every values over vmin will have the color defined using the over parameter.
- undertuple/string | None
Matplotlib color under vmin.
- overtuple/string | None
Matplotlib color over vmax.