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
fixedstr | ‘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’

  • Side front-left : ‘side-fl’

  • Side front-right : ‘side-fr’

  • Side back-left : ‘side-bl’

  • Side back-right : ‘side-br’

customtuple | None

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