Skip to content

Commit

Permalink
add 'hemisphere' option to heatmap() (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocastoldi authored Dec 21, 2023
1 parent f9e7f90 commit 65a4b2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion brainglobe_heatmap/heatmaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 65a4b2d

Please sign in to comment.