From 78c0426766087d79667e426af559b3a36fe20b9c Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Mon, 16 Sep 2024 16:54:41 +0100 Subject: [PATCH] Add example showing plotting brain regions in a single hemisphere (#383) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- examples/regions_single_hemisphere.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 examples/regions_single_hemisphere.py diff --git a/examples/regions_single_hemisphere.py b/examples/regions_single_hemisphere.py new file mode 100644 index 0000000..10e97d6 --- /dev/null +++ b/examples/regions_single_hemisphere.py @@ -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()