Skip to content

Commit

Permalink
Add example showing plotting brain regions in a single hemisphere
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Sep 16, 2024
1 parent 7952179 commit 3279afe
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/regions_single_hemisphere.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"""
Example to visualise brain regions in a single hemisphere
"""
from pathlib import Path

from myterial import orange
from rich import print

from brainrender import Scene

print(f"[{orange}]Running example: {Path(__file__).name}")

# Create a brainrender scene
scene = Scene(title="Left hemisphere", atlas_name="allen_mouse_25um")

# Add brain regions
scene.add_brain_region("CP", "VISp", hemisphere="left")

# Render!
scene.render()

0 comments on commit 3279afe

Please sign in to comment.