# Plot on the sides of a cube

**URL:** <https://forum.generic-mapping-tools.org/t/plot-on-the-sides-of-a-cube/4079>\
**Category:** Showcase\
**Created:** [June 28, 2023, 4:17pm UTC](https://forum.generic-mapping-tools.org/t/plot-on-the-sides-of-a-cube/4079 "2023-06-28T16:17:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [June 28, 2023, 4:17pm UTC](https://forum.generic-mapping-tools.org/t/plot-on-the-sides-of-a-cube/4079/1 "2023-06-28T16:17:53Z")

</div>

This code still needs more work, but we can already use Andrea’s vegetables as a background of a 3D view. The challenge is on how to trim the hidden parts of the wall images and place them in front. A kind of `grdview -N<image>`

```auto
using GMT

G = GMT.peaks(N=100);
cubeplot("cenora_base.jpg", "bunny_cenora.webp", "burro_cenora.webp", R=G, zsize=6, back=true)
grdview!(G, zsize=6, surftype=(img=true,), show=true)

```

(EDIT: with the dev version we can do it with

```auto
viz(G, zsize=6, facades=("cenora_base.jpg", "bunny_cenora.webp", "burro_cenora.webp"))

```

)

 ![cube_cenoras](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/6/6d6f521c0226661810318e718f63f3d2b97626e4.png)

And for fun we can also do _pretend-to-be-more-serious_ figs.

```auto
cubeplot("seila_gray.png", "seis_section_rgb.jpg", "seis_section_gray.png", zsize=6, show=true)

```

 ![seis_sect](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/5/5b310195f21dc425a5c626fad8ecb93a51abff48.png)

---

<div class="post-metadata">

**Author:** ![Jianbo](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/jianbo/32/3197_2.png) [@Jianbo](https://forum.generic-mapping-tools.org/u/Jianbo)\
**Post date:** [July 20, 2023, 2:46pm UTC](https://forum.generic-mapping-tools.org/t/plot-on-the-sides-of-a-cube/4079/2 "2023-07-20T14:46:10Z")

</div>

This looks very interesting. So it’s a few 2D pictures “stitched” together using cubeplot ?

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [July 20, 2023, 4:25pm UTC](https://forum.generic-mapping-tools.org/t/plot-on-the-sides-of-a-cube/4079/3 "2023-07-20T16:25:58Z")

</div>

Yes.
