make_actor_label#

brainrender.actor.make_actor_label(atlas, actors, labels, size=300, color=None, radius=100, xoffset=0, yoffset=-500, zoffset=0)[source]#

Create 3D text labels anchored to actor meshes.

Parameters:
  • atlas (BrainGlobeAtlas) – Atlas used for hemisphere queries and point mirroring.

  • actors (Actor | list[Actor]) – Actors to label.

  • labels (str | list[str]) – Label string(s) for each actor.

  • size (int) – Text size. Default 300.

  • color (str | list[float] | None) – Label colour. Defaults to dark grey if None.

  • radius (int | None) – Radius of the anchor sphere. Set to None to hide. Default 100.

  • xoffset (int) – Positional offset along x. Default 0.

  • yoffset (int) – Positional offset along y. Default -500.

  • zoffset (int) – Positional offset along z. Default 0.

Returns:

Flat list of vedo Text3D and Sphere objects.

Return type:

list