diff --git a/brainrender/actors/volume.py b/brainrender/actors/volume.py index 4f49ce75..9019a81c 100644 --- a/brainrender/actors/volume.py +++ b/brainrender/actors/volume.py @@ -78,12 +78,13 @@ def _from_numpy(self, griddata, voxel_size, color, **volume_kwargs): Creates a vedo.Volume actor from a 3D numpy array with volume data """ - return VedoVolume( + volume = VedoVolume( griddata, spacing=[voxel_size, voxel_size, voxel_size], - c=color, **volume_kwargs, ) + volume.cmap(color) + return volume def _from_file(self, filepath, voxel_size, color, **volume_kwargs): """