# How to set nan\_color in Makie volume plot

**URL:** <https://discourse.julialang.org/t/how-to-set-nan-color-in-makie-volume-plot/134698>\
**Category:** Visualization\
**Tags:** plotting, glmakie\
**Created:** [December 22, 2025, 10:25pm UTC](https://discourse.julialang.org/t/how-to-set-nan-color-in-makie-volume-plot/134698 "2025-12-22T22:25:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Post date:** [December 22, 2025, 10:25pm UTC](https://discourse.julialang.org/t/how-to-set-nan-color-in-makie-volume-plot/134698/1 "2025-12-22T22:25:06Z")

</div>

I want to set the nan\_color to :white or may be :green. How to do it?

```julia-auto
using GLMakie
xmin, xmax, ymin, ymax, zmin, zmax = -3, 3, -3, 3, 1, 8;
field = fill(NaN32, 50,50,50);
fig = Figure()
ax::LScene = LScene(fig[1,1])
volume!(ax, xmin..xmax, ymin..ymax, zmin..zmax, field)

```
