visbrain.objects.SceneObj

class visbrain.objects.SceneObj(bgcolor='black', camera_state={}, verbose=None, **kwargs)[source][source]

Create a scene and add objects to it.

Parameters:
bgcolorstring | ‘black’

Background color of the scene.

showbool | True

Display the canvas.

camera_statedict | {}

The default camera state to use.

verbosestring

Verbosity level.

Notes

List of supported shortcuts :

  • s : save the figure

  • delete : reset all views

Methods

__init__([bgcolor, camera_state, verbose])

Init.

add_to_subplot(obj[, row, col, row_span, ...])

Add object to subplot.

link(*args)

Link the camera of several objects of the scene.

preview([mpl])

Previsualize the result.

record_animation(name[, n_pic])

Record an animated scene and save as a *.gif file.

render()

Render the canvas.

screenshot(saveas[, print_size, dpi, unit, ...])

Take a screeshot of the scene.

Examples using visbrain.objects.SceneObj

Animate objects in the scene

Animate objects in the scene

Brain object (BrainObj) : complete tutorial

Brain object (BrainObj) : complete tutorial

Combine multiple objects

Combine multiple objects

Connectivity object (ConnectObj) : complete tutorial

Connectivity object (ConnectObj) : complete tutorial

Grid of signals object (GridSignalsObj) : complete tutorial

Grid of signals object (GridSignalsObj) : complete tutorial

Image, time-frequency map and spectrogram objects

Image, time-frequency map and spectrogram objects

Phase-Amplitude Coupling (PAC) object

Phase-Amplitude Coupling (PAC) object

Region Of Interest object (RoiObj) : complete tutorial

Region Of Interest object (RoiObj) : complete tutorial

Source object (SourceObj) : complete tutorial

Source object (SourceObj) : complete tutorial

Topoplot object (TopoObj) : complete tutorial

Topoplot object (TopoObj) : complete tutorial

Time-series and pictures 3D (TimeSeries3DObj & Picture3DObj): complete tutorial

Time-series and pictures 3D (TimeSeries3DObj & Picture3DObj): complete tutorial

Volume object (VolumeObj) : complete tutorial

Volume object (VolumeObj) : complete tutorial

Plot x3d files

Plot x3d files