visbrain.objects.BrainObj.rotate

BrainObj.rotate(fixed=None, scale_factor=None, custom=None, margin=1.08)[source][source]

Rotate the brain using predefined rotations or a custom one.

Parameters:
fixed : str | ‘top’

Use a fixed rotation :

  • Top view : ‘axial_0’, ‘top’
  • Bottom view : ‘axial_1’, ‘bottom’
  • Left : ‘sagittal_0’, ‘left’
  • Right : ‘sagittal_1’, ‘right’
  • Front : ‘coronal_0’, ‘front’
  • Back : ‘coronal_1’, ‘back’
custom : tuple | None

Custom rotation. This parameter must be a tuple of two floats respectively describing the (azimuth, elevation).