# Embed heatmap under 3D surface plot

**URL:** <https://community.plotly.com/t/embed-heatmap-under-3d-surface-plot/77140>\
**Category:** 📊 Plotly Python\
**Created:** [July 25, 2023, 12:41pm UTC](https://community.plotly.com/t/embed-heatmap-under-3d-surface-plot/77140 "2023-07-25T12:41:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SolySombra98](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@SolySombra98](https://community.plotly.com/u/SolySombra98)\
**Post date:** [July 25, 2023, 12:41pm UTC](https://community.plotly.com/t/embed-heatmap-under-3d-surface-plot/77140/1 "2023-07-25T12:41:02Z")

</div>

Hello!! I’m looking for a way to embeb a heatmap under a 3D surface plot. The heatmap can be a projection of the above surface or another completely different array (but always with the same size). I’d like to get something similar to the image I post here.  
 ![heatmap_+_3D_surface](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/8/0/8067e3dbbeb74b1bbc75aecea0617af88c6c3233.png)  
I’ve only managed to get the heatmap behind the surface plot graph, is it even possible to generate what I want or does plotly not allow it at the moment??

Thanks for your help!!

---

<div class="post-metadata">

**Author:** ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)\
**Post date:** [July 25, 2023, 3:19pm UTC](https://community.plotly.com/t/embed-heatmap-under-3d-surface-plot/77140/2 "2023-07-25T15:19:48Z")

</div>

HI @SolySombra98 welcome to the forums.

This thread should get you started:

> [@How to plot a 2d Graph on the background (side wall) of a 3d Plot](https://community.plotly.com/t/how-to-plot-a-2d-graph-on-the-background-side-wall-of-a-3d-plot/72874):
>
> Hi, I have a sample 3d plot (shown in the following) and as you see the side walls (Backgrounds) are colored. import plotly.graph\_objects as go import numpy as np t = np.linspace(-1, 1.2, 500) x = (t\*\*3) + (0.3 \* np.random.randn(500)) y = (t\*\*6) + (0.3 \* np.random.randn(500)) z=(t\*\*2) + (0.3 \* np.random.randn(500)) fig = go.Figure() fig.add\_scatter3d( x = x, y = y, z = z, mode = 'markers', marker = dict( color = 'rgba(0,0,0,0.3)', size = 3) ) fig.update\_layout( auto…
