# \[GLMakie\] volume method

**URL:** https://discourse.julialang.org/t/glmakie-volume-method/101115
**Category:** General Usage
**Tags:** plotting, makie, glmakie
**Created:** [July 3, 2023, 9:51am UTC](https://discourse.julialang.org/t/glmakie-volume-method/101115 "2023-07-03T09:51:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fdekerme](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fdekerme/32/43574_2.png) [@fdekerme](https://discourse.julialang.org/u/fdekerme)
#### Post date: [July 3, 2023, 9:51am UTC](https://discourse.julialang.org/t/glmakie-volume-method/101115/1 "2023-07-03T09:51:10Z")

</div>

Hello !  
Does anyone know how to use GLMakie’s `volume` method [volume - Makie](https://docs.makie.org/stable/examples/plotting_functions/volume/index.html#volume) with “_optional physical dimensions x, y, z_” as described in the doc?

For exemple, `volume(1.0,2.0,3.0, rand(100,100,100))` doesn’t work.  
Thanks !  
fdekerm

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [July 4, 2023, 3:03pm UTC](https://discourse.julialang.org/t/glmakie-volume-method/101115/2 "2023-07-04T15:03:56Z")

</div>

This probably means that you can specify the locations of the voxels using x, y and z. Usually that is done using ranges, so `volume(range(0, 1, length = 100), range(10, 20, length = 100), range(50, 51, length = 100, rand(100, 100, 100))` should work I think. Maybe also using interval syntax like `volume(0..1, 10..20, 50..51, ...)`
