contour: volume-like

using GLMakie, ColorSchemes
GLMakie.activate!()

x = y = z = 1:10
f(x, y, z) = x^2 + y^2 + z^2
vol = [f(ix, iy, iz) for ix in x, iy in y, iz in z]
fig, ax, _ = contour(x, y, z, vol;
    #colorrange = (minimum(vol), maximum(vol)),
    levels = 10,
    colormap = :Egypt, transparency = true,
    figure = (; resolution = (1200, 800)),
    axis = (;
        type = Axis3,
        perspectiveness = 0.5,
        azimuth = 2.19,
        elevation = 0.57,
        aspect = (1, 1, 1)
        )
    )
fig

Warning

This example was autogenerated using:

using Pkg
Pkg.status(["GLMakie", "ColorSchemes"])
Status `~/work/BeautifulMakie/BeautifulMakie/docs/Project.toml`
  [35d6a980] ColorSchemes v3.21.0
  [e9467ef8] GLMakie v0.8.6

This page was generated using Literate.jl.