# Surfc equivalent? Plotting contour underneath surfacep plot

**URL:** <https://discourse.julialang.org/t/surfc-equivalent-plotting-contour-underneath-surfacep-plot/52108>\
**Category:** Visualization\
**Tags:** plotting, plots\
**Created:** [December 19, 2020, 8:28pm UTC](https://discourse.julialang.org/t/surfc-equivalent-plotting-contour-underneath-surfacep-plot/52108 "2020-12-19T20:28:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jg-854](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jg-854/32/20395_2.png) [@jg-854](https://discourse.julialang.org/u/jg-854)\
**Post date:** [December 19, 2020, 8:28pm UTC](https://discourse.julialang.org/t/surfc-equivalent-plotting-contour-underneath-surfacep-plot/52108/1 "2020-12-19T20:28:04Z")

</div>

> **[Contour plot under surface plot - MATLAB surfc
- MathWorks United Kingdom](https://uk.mathworks.com/help/matlab/ref/surfc.html)**
>
> This MATLAB function creates a three-dimensional surface plot with a contour plot underneath.

MATLAB has this feature which allows you to plot a contour plot underneath a surface plot of a function. I would like to recreate this in JULIA. If I used contour!() after surface(), this doesn’t seem to work…

Thanks!

---

<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:** [December 20, 2020, 1:13am UTC](https://discourse.julialang.org/t/surfc-equivalent-plotting-contour-underneath-surfacep-plot/52108/2 "2020-12-20T01:13:51Z")

</div>

Check this out: [Gnuplot gallery](https://lazarusa.github.io/gnuplot-examples/menu2/#countour_and_3d)

---

<div class="post-metadata">

**Author:** ![j\_verzani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/j_verzani/32/8551_2.png) [@j\_verzani](https://discourse.julialang.org/u/j_verzani)\
**Post date:** [December 20, 2020, 2:44am UTC](https://discourse.julialang.org/t/surfc-equivalent-plotting-contour-underneath-surfacep-plot/52108/3 "2020-12-20T02:44:13Z")

</div>

There is an example on this page using plots: [https://github.com/jverzani/CalculusWithJulia.jl/blob/master/CwJ/differentiable\_vector\_calculus/plots-plotting.jmd#L243](https://github.com/jverzani/CalculusWithJulia.jl/blob/master/CwJ/differentiable_vector_calculus/plots-plotting.jmd#L243)

But other plotting packages can render these better.
