# Makie - How to put contour3d and surface upon the same figure?

**URL:** <https://discourse.julialang.org/t/makie-how-to-put-contour3d-and-surface-upon-the-same-figure/62002>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [May 28, 2021, 4:05pm UTC](https://discourse.julialang.org/t/makie-how-to-put-contour3d-and-surface-upon-the-same-figure/62002 "2021-05-28T16:05:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmura](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jmura](https://discourse.julialang.org/u/jmura)\
**Post date:** [May 28, 2021, 4:05pm UTC](https://discourse.julialang.org/t/makie-how-to-put-contour3d-and-surface-upon-the-same-figure/62002/1 "2021-05-28T16:05:05Z")

</div>

Hi All,

I’m trying to get a simple figure using this in a Jupyter notebook:

```julia
using GLMakie, AbstractPlotting 

AbstractPlotting.inline!(true)

ξ = LinRange(-1, 1, 50)
η = LinRange(-1, 1, 50)
ϕ₁(ξ) = (1 .- ξ)./2
ϕ₂(ξ) = (1 .+ ξ)./2
ϕ₁₁ = [ϕ₁(ξ_).*ϕ₁(η_) for ξ_ in ξ, η_ in η]
ϕ₁₂ = [ϕ₁(ξ_).*ϕ₂(η_) for ξ_ in ξ, η_ in η]

fig=Figure()
Axis(fig[1,1]) # in this case no effect! # Axis3 is not recognized here, but it does in REPL

c = GLMakie.contour3d(ξ,η,ϕ₁₁,linewith=5.0,levels=20) # 'c' apparently doesn't matter either for this example
GLMakie.surface!(ξ,η,ϕ₁₁,transparency=true)#,axis=(type=Axis3,)) # Axis3 not working!, even commenting the Axis(fig..) line

display(fig)

```

But only by separately shows the contour and the surface, but not both. I’m using GLMakie v0.1.30, AbstractPlotting v0.15.27 and Makie v0.13.9 in Julia 1.6.0. Thanks!

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [May 28, 2021, 4:46pm UTC](https://discourse.julialang.org/t/makie-how-to-put-contour3d-and-surface-upon-the-same-figure/62002/2 "2021-05-28T16:46:16Z")

</div>

You’re on old versions. Try removing AbstractPlotting (and only use the backend in your code) and explicitly add `]add GLMakie@0.3.2` for the newest version.  
For jupyter, you also may consider [WGLMakie](http://juliaplots.org/WGLMakie.jl/stable/#Pluto/IJulia).  
And you don’t really need the `display(fig)` call
