From 65a4b2d39e52daa5b1bd887bea1e8d036f1d2b11 Mon Sep 17 00:00:00 2001 From: carlocastoldi <34198340+carlocastoldi@users.noreply.github.com> Date: Thu, 21 Dec 2023 15:38:21 +0100 Subject: [PATCH] add 'hemisphere' option to heatmap() (#27) --- brainglobe_heatmap/heatmaps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brainglobe_heatmap/heatmaps.py b/brainglobe_heatmap/heatmaps.py index 8964002..088bc8a 100644 --- a/brainglobe_heatmap/heatmaps.py +++ b/brainglobe_heatmap/heatmaps.py @@ -54,6 +54,7 @@ def __init__( values: Dict[str, float], position: Union[list, tuple, np.ndarray], orientation: Union[str, tuple] = "frontal", + hemisphere: str = "both", title: Optional[str] = None, cmap: str = "Reds", vmin: Optional[float] = None, @@ -89,7 +90,7 @@ def __init__( self.prepare_colors(values, cmap, vmin, vmax) # add regions to the brainrender scene - self.scene.add_brain_region(*self.values.keys()) + self.scene.add_brain_region(*self.values.keys(), hemisphere=hemisphere) self.regions_meshes = [ r