# Isosurface in Makie

**URL:** https://discourse.julialang.org/t/isosurface-in-makie/70034
**Category:** General Usage
**Tags:** makie
**Created:** [October 19, 2021, 1:58pm UTC](https://discourse.julialang.org/t/isosurface-in-makie/70034 "2021-10-19T13:58:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![marianoarnaiz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marianoarnaiz/32/19377_2.png) [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)
#### Post date: [October 19, 2021, 1:58pm UTC](https://discourse.julialang.org/t/isosurface-in-makie/70034/1 "2021-10-19T13:58:24Z")

</div>

Hi everyone.  
I have a set of 3D data that i need to plot with some isosurface:  
X,Y,Z,DATA.

I am trying to do some fancy isosurface plot with vertical slices of the data and some isosurface on top (from perspective). I readl Makie is good for isosurface wite the volume feature.

Any one with an idea of how to make something like this:

 ![40623_2018_941_Figa_HTML](https://global.discourse-cdn.com/julialang/original/3X/e/2/e241b0d6d48aec1b67fc84b2ba62e80e7d8cb317.webp)

---

<div class="post-metadata">

### Author: ![ffreyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffreyer/32/21569_2.png) [@ffreyer](https://discourse.julialang.org/u/ffreyer)
#### Post date: [October 19, 2021, 4:58pm UTC](https://discourse.julialang.org/t/isosurface-in-makie/70034/2 "2021-10-19T16:58:26Z")

</div>

[volume](https://makie.juliaplots.org/dev/examples/plotting_functions/volume/) with `algorithm = :iso` should give you the same style of 3D plot and [volumeslices](https://makie.juliaplots.org/dev/examples/plotting_functions/volumeslices/) should allow you to get vertical slices. Right now those slices will render in front of the volume plot but once [#1395](https://github.com/JuliaPlots/Makie.jl/pull/1395) gets merged that will be fixed.

---

<div class="post-metadata">

### Author: ![marianoarnaiz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marianoarnaiz/32/19377_2.png) [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)
#### Post date: [October 19, 2021, 5:59pm UTC](https://discourse.julialang.org/t/isosurface-in-makie/70034/3 "2021-10-19T17:59:20Z")

</div>

Hi @ffreyer … do you know how to change the axis and color? like:

volume(X,Y,Z,P, algorithm = :iso, isorange = 0.1, isovalue = 1.0, color=:red)?

---

<div class="post-metadata">

### Author: ![ffreyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffreyer/32/21569_2.png) [@ffreyer](https://discourse.julialang.org/u/ffreyer)
#### Post date: [October 19, 2021, 6:10pm UTC](https://discourse.julialang.org/t/isosurface-in-makie/70034/4 "2021-10-19T18:10:25Z")

</div>

The colors should be sampled from the given `colormap`. If you want nice looking axis you’re probably better of using [Axis3](https://makie.juliaplots.org/dev/examples/layoutables/axis3/index.html). If you don’t want to use Axis3 you can try changing stuff in `ax.scene.plots[1].attributes`. (With `fig, ax, p = volume(...)`)

---

<div class="post-metadata">

### Author: ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)
#### Post date: [January 13, 2026, 7:39pm UTC](https://discourse.julialang.org/t/isosurface-in-makie/70034/5 "2026-01-13T19:39:39Z")

</div>

> [@marianoarnaiz](#):
>
> Hi @ffreyer … do you know how to change the axis and color? like:

I was also trying to solve this and i think it would be better to post it for future readers. For me `colormap=[:red]` worked fine.

```julia-auto
volume(X,Y,Z,P, algorithm = :iso, isorange = 0.1, isovalue = 1.0, colormap=[:red])

```
