# \[Makie.jl\] 3D voxelized visualization of a cubical matrix

**URL:** <https://discourse.julialang.org/t/makie-jl-3d-voxelized-visualization-of-a-cubical-matrix/77360>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [March 3, 2022, 2:12pm UTC](https://discourse.julialang.org/t/makie-jl-3d-voxelized-visualization-of-a-cubical-matrix/77360 "2022-03-03T14:12:53Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 25, 2024, 6:58pm UTC](https://discourse.julialang.org/t/makie-jl-3d-voxelized-visualization-of-a-cubical-matrix/77360/25 "2024-07-25T18:58:00Z")

</div>

You are welcome. You may be interested in the new Makie.voxels function if your colors are restricted to a pre-defined set of colors:

> [@Handling colors in new \`Makie.voxels\` function](https://discourse.julialang.org/t/handling-colors-in-new-makie-voxels-function/115251):
>
> The new voxels function was introduced in Makie v0.21 to plot 3D Cartesian grids more efficiently. However, it assumes Array{\<:Real,3} for the colors. Can it sill be used with general Colors.jl colors? It is easy to convert Gray to Real, but multi-channel colors (e.g. RGB) cannot be converted to Gray without loss.

It can render larger grids based on that assumption.

---

_[View the full topic](https://discourse.julialang.org/t/makie-jl-3d-voxelized-visualization-of-a-cubical-matrix/77360)._
