# Fill a curve in 3D

**URL:** <https://discourse.julialang.org/t/fill-a-curve-in-3d/37890>\
**Category:** Visualization\
**Tags:** plots\
**Created:** [April 20, 2020, 11:25am UTC](https://discourse.julialang.org/t/fill-a-curve-in-3d/37890 "2020-04-20T11:25:12Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [March 1, 2024, 8:02am UTC](https://discourse.julialang.org/t/fill-a-curve-in-3d/37890/8 "2024-03-01T08:02:46Z")

</div>

Here’s a solution using Makie:

```julia
using GLMakie

x = 0:0.05:3;
y = 0:0.05:3;
z = @. sin(x) * exp(-(x+y))

fig = Figure(size=(400, 300))
ax = Axis3(fig[1,1], limits=((0,3), (0,3), (0,0.2)),
           azimuth=0.3, elevation=0.4)
lines!(Point3f.(x, 0, z))
lines!(Point3f.(0, y, z))
band!(Point3f.(x, y, 0), Point3f.(x, y, z), color=(:red, 0.5))
fig

```

![image](https://global.discourse-cdn.com/julialang/original/3X/a/e/ae22d6786c2f7dc09ad1c5f42d093a34f5a2fb6a.png)

I used GLMakie because CairoMakie handles the transparency poorly for some reason:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/8/783149f5d27c59d516c5edde21ad1eadeff8c8eb.png)

---

_[View the full topic](https://discourse.julialang.org/t/fill-a-curve-in-3d/37890)._
