# Array of boxes using Makie and volume

**URL:** https://discourse.julialang.org/t/array-of-boxes-using-makie-and-volume/27350
**Category:** Visualization
**Created:** [August 9, 2019, 10:55am UTC](https://discourse.julialang.org/t/array-of-boxes-using-makie-and-volume/27350 "2019-08-09T10:55:48Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![lazarusA](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lazarusa/32/6571_2.png) [@lazarusA](https://discourse.julialang.org/u/lazarusA)
#### Post date: [August 9, 2019, 1:38pm UTC](https://discourse.julialang.org/t/array-of-boxes-using-makie-and-volume/27350/2 "2019-08-09T13:38:27Z")

</div>

Not Makie, but good for now.

```julia
using PlotlyJS
function cube_form(center = 0.0)
     mesh3d(
        x=[0, 0, 1, 1, 0, 0, 1, 1],
        y=[0, 1, 1, 0, 0, 1, 1, 0] .+ center,
        z=[0, 0, 0, 0, 1, 1, 1, 1],
        i=[7, 0, 0, 0, 4, 4, 6, 6, 4, 0, 3, 2],
        j=[3, 4, 1, 2, 5, 6, 5, 2, 0, 1, 6, 3],
        k=[0, 7, 2, 3, 6, 7, 1, 1, 5, 5, 7, 6],
        intensity=range(0, stop=1, length=8),
        colorscale=[
            [0, "gold"],
            [0.5, "mediumturquoise"],
            [1, "gold"]
        ],
    showscale=false,
    opacity = 0.5
    )
end

t = cube_form()
t1 = cube_form(1.5)
t2 = cube_form(3.0)
plot([t, t1, t2])

```

 ![cubes](https://global.discourse-cdn.com/julialang/original/3X/9/a/9a6e17576b345474424953e52ccfff8187d1d319.jpeg)

---

_[View the full topic](https://discourse.julialang.org/t/array-of-boxes-using-makie-and-volume/27350)._
