# 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:** 3

<div class="post-metadata">

**Author:** ![gcalderone](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gcalderone/32/1539_2.png) [@gcalderone](https://discourse.julialang.org/u/gcalderone)\
**Post date:** [April 20, 2020, 12:55pm UTC](https://discourse.julialang.org/t/fill-a-curve-in-3d/37890/3 "2020-04-20T12:55:18Z")

</div>

Don’t know if it applies, but in [Gnuplot.jl](https://github.com/gcalderone/Gnuplot.jl) is quite easy:

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

using Gnuplot
@gsp xlab="X" ylab="Y" linetypes(:Set1_5, lw=3) :-
@gsp :- "set style fill transparent solid 0.3" :-
@gsp :- "set xyplane at 0" "set grid" :-
@gsp :- x y z z.*0 z "w zerror t 'Data'" :-
@gsp :- x.*0 y z "w l notit" :- # projection on x=0
@gsp :- x y.*0 z "w l notit" # projection on y=0
save(term="pngcairo", output="output.png")

```

![output](https://global.discourse-cdn.com/julialang/original/3X/b/8/b8b49ab607a76a390ec3027834999ef83dd94fbe.png)

---

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