Skip to content

Commit

Permalink
add volumeslices test
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Oct 2, 2024
1 parent 9a25178 commit ba97237
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ReferenceTests/src/tests/examples3d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -706,3 +706,17 @@ end
ls2, pl = surface(f[1, 2], Makie.peaks(20); interpolate=false, axis=(; show_axis=false))
f
end

@reference_test "volumeslices" begin
r = range(-1, 1, length = 10)
data = RNG.rand(10,10,10)

fig = Figure()
volumeslices(fig[1, 1], r, r, r, data)
a, p = volumeslices(fig[1, 2], r, r, r, data, bbox_visible = false, colormap = :RdBu,
colorrange = (0.2, 0.8), lowclip = :black, highclip = :green)
p.update_xz[](3)
p.update_yz[](4)
p.update_xy[](10)
fig
end

0 comments on commit ba97237

Please sign in to comment.