@@ -66,8 +66,53 @@ def __init__(
66
66
zoom : Optional [float ] = None ,
67
67
atlas_name : Optional [str ] = None ,
68
68
label_regions : Optional [bool ] = False ,
69
+ check_latest : bool = True ,
69
70
** kwargs ,
70
71
):
72
+ """
73
+ Creates a heatmap visualization of the provided values in 3D or 2D
74
+ using brainrender or matplotlib in the specified atlas.
75
+
76
+ Parameters
77
+ ----------
78
+ values : dict
79
+ Dictionary with brain regions acronyms as keys and
80
+ magnitudes as the values.
81
+ position : list, tuple, np.ndarray, float
82
+ Position of the plane in the atlas.
83
+ orientation : str or tuple, optional
84
+ Orientation of the plane in the atlas. Either, "frontal",
85
+ "sagittal", "horizontal" or a tuple with the normal vector.
86
+ Default is "frontal".
87
+ hemisphere : str, optional
88
+ Hemisphere to display the heatmap. Default is "both".
89
+ title : str, optional
90
+ Title of the heatmap. Default is None.
91
+ cmap : str, optional
92
+ Colormap to use for the heatmap. Default is "Reds".
93
+ vmin : float, optional
94
+ Minimum value for the colormap. Default is None.
95
+ vmax : float, optional
96
+ Maximum value for the colormap. Default is None.
97
+ format : str, optional
98
+ Format of the heatmap visualization.
99
+ "3D" for brainrender or "2D" for matplotlib. Default is "3D".
100
+ thickness : float, optional
101
+ Thickness of the slicing plane in the brainrender scene.
102
+ Default is 10.
103
+ interactive : bool, optional
104
+ If True, the brainrender scene is interactive. Default is True.
105
+ zoom : float, optional
106
+ Zoom level for the brainrender scene. Default is None.
107
+ atlas_name : str, optional
108
+ Name of the atlas to use for the heatmap.
109
+ If None allen_mouse_25um is used. Default is None.
110
+ label_regions : bool, optional
111
+ If True, labels the regions on the colorbar (only valid in 2D).
112
+ Default is False.
113
+ check_latest : bool, optional
114
+ Check for the latest version of the atlas. Default is True.
115
+ """
71
116
# store arguments
72
117
self .values = values
73
118
self .format = format
@@ -83,6 +128,7 @@ def __init__(
83
128
atlas_name = atlas_name ,
84
129
title = title ,
85
130
title_color = grey_darker ,
131
+ check_latest = check_latest ,
86
132
** kwargs ,
87
133
)
88
134
0 commit comments