Skip to content

Commit

Permalink
Add example showing plotting brain regions in a single hemisphere (#383)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
adamltyson and pre-commit-ci[bot] authored Sep 16, 2024
1 parent 7952179 commit 78c0426
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/regions_single_hemisphere.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""
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 78c0426

Please sign in to comment.