# 2d plot in 3d scene

**URL:** <https://discourse.julialang.org/t/2d-plot-in-3d-scene/80708>\
**Category:** General Usage\
**Tags:** plots, plotlyjs\
**Created:** [May 8, 2022, 12:26pm UTC](https://discourse.julialang.org/t/2d-plot-in-3d-scene/80708 "2022-05-08T12:26:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [May 8, 2022, 6:31pm UTC](https://discourse.julialang.org/t/2d-plot-in-3d-scene/80708/4 "2022-05-08T18:31:52Z")

</div>

> [@RainerHeintzmann](#):
>
> But its a curve and not a heatmap on the walls.

Please check this:

```julia
using Plots; plotlyjs()

n = 100
x = y = z = range(0,10,n)

xx, yy, zz = x .* zeros(n)', y .* ones(n)', z .* ones(n)'
surface(xx, yy', zz, fill_z = (yy').^2 + zz.^2)

xx, yy, zz = x .* ones(n)', y .* zeros(n)', z .* ones(n)'
surface!(xx',yy, zz, fill_z = (xx').^2 + zz.^2, yflip=true)

xx, yy, zz = x .* ones(n)', y .* ones(n)', z .* zeros(n)'
surface!(xx', yy, zz', fill_z = (xx').^2 + yy.^2, size=(800,800))

```

 ![Plots_plotlyjs_xyz_planes_heatmaps](https://global.discourse-cdn.com/julialang/original/3X/0/c/0c75f1c7441043a443824c98f73dd186f27ce30f.png)

Animating such displays we can produce in Plots.jl:  
 ![Plots_plotlyjs_wave](https://global.discourse-cdn.com/julialang/original/3X/0/e/0eb2aa7a7bbc09dadc804066bb9b36e172ff0f01.gif)

---

_[View the full topic](https://discourse.julialang.org/t/2d-plot-in-3d-scene/80708)._
