Skip to content

Commit

Permalink
Fixed colormap related issue
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Nov 16, 2023
1 parent 22e9a76 commit d2f605f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions brainrender/actors/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit d2f605f

Please sign in to comment.