From 3279afed12231f4ec7689ca648fef102be8ab37c Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Mon, 16 Sep 2024 14:41:42 +0100 Subject: [PATCH 1/2] Add example showing plotting brain regions in a single hemisphere --- examples/regions_single_hemisphere.py | 20 ++++++++++++++++++++ 1 file changed, 20 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..408604a --- /dev/null +++ b/examples/regions_single_hemisphere.py @@ -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() From 2262f9c0050e064b6f111aeec86e0930dc81b859 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2024 13:42:29 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/regions_single_hemisphere.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/regions_single_hemisphere.py b/examples/regions_single_hemisphere.py index 408604a..10e97d6 100644 --- a/examples/regions_single_hemisphere.py +++ b/examples/regions_single_hemisphere.py @@ -1,6 +1,7 @@ """ Example to visualise brain regions in a single hemisphere """ + from pathlib import Path from myterial import orange