visbrain.objects.CrossSecObj.set_activation

CrossSecObj.set_activation(data, xyz=None, translucent=(None, 0.5), cmap='Spectral_r', clim=None, vmin=None, vmax=None, under='red', over='green')[source][source]

Set any type of additional data (activation, stat…).

Parameters:
data : string

Full path to the nifti file.

xyz : array_like | None

Coordinate of a point to center the cross-sections.

translucent : tuple | None

Set a specific range translucent. With f_1 and f_2 two floats, if translucent is :

  • (f_1, f_2) : values between f_1 and f_2 are set to translucent
  • (None, f_2) x <= f_2 are set to translucent
  • (f_1, None) f_1 <= x are set to translucent
cmap : string | ‘Spectral_r’

Colormap to use.

clim : tuple | None

Colorbar limits.

vmin : float | None

Lower threshold.

under : string | ‘red’

Color to use for every values under vmin.

vmax : float | None

Over threshold.

over : string | ‘green’

Color to use for every values over vmax.