# ContourPlot3D (surface) in Julia

**URL:** <https://discourse.julialang.org/t/contourplot3d-surface-in-julia/62923>\
**Category:** General Usage\
**Tags:** plotting, implicit-equation\
**Created:** [June 15, 2021, 12:37am UTC](https://discourse.julialang.org/t/contourplot3d-surface-in-julia/62923 "2021-06-15T00:37:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maoc](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@maoc](https://discourse.julialang.org/u/maoc)\
**Post date:** [June 15, 2021, 12:37am UTC](https://discourse.julialang.org/t/contourplot3d-surface-in-julia/62923/1 "2021-06-15T00:37:55Z")

</div>

I am trying to plot the 3D surface given by the zero of a function. I have a complicated function given by

```julia
function mcl(Y,w)
BLAH BLAH
end

```

Where Y is a 2-element Array{Int64,1} and w is a real number. For example

```julia
mcl([1,1],1)
-0.5630978416902811

```

I would like to plot the 3D-surface given by mcl(Y,w) = 0.  
I searched in several threads but didn’t find any similar resolution.

---

<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:** [June 15, 2021, 1:10am UTC](https://discourse.julialang.org/t/contourplot3d-surface-in-julia/62923/2 "2021-06-15T01:10:54Z")

</div>

Maybe this package can help [https://github.com/bachrathyd/MDBM.jl](https://github.com/bachrathyd/MDBM.jl)  
Here is some glue code [CalculusWithJulia.jl/implicit\_equation.jl at master · jverzani/CalculusWithJulia.jl · GitHub](https://github.com/jverzani/CalculusWithJulia.jl/blob/master/src/implicit_equation.jl#L41)

Otherwise, please see [IntervalConstraintProgramming.jl/index.md at master · JuliaIntervals/IntervalConstraintProgramming.jl · GitHub](https://github.com/JuliaIntervals/IntervalConstraintProgramming.jl/blob/master/docs/src/index.md) which should also be more than up to the task

---

<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:** [June 15, 2021, 12:52pm UTC](https://discourse.julialang.org/t/contourplot3d-surface-in-julia/62923/3 "2021-06-15T12:52:28Z")

</div>

Fyi, [this stackoverflow post](https://stackoverflow.com/questions/4680525/plotting-implicit-equations-in-3d) provides a smart solution to this problem, the results look good and the idea seems simple enough to port to Julia.
