diff --git a/ReferenceTests/src/tests/figures_and_makielayout.jl b/ReferenceTests/src/tests/figures_and_makielayout.jl index 2f857d415c3..eba9109bdd1 100644 --- a/ReferenceTests/src/tests/figures_and_makielayout.jl +++ b/ReferenceTests/src/tests/figures_and_makielayout.jl @@ -220,10 +220,7 @@ end # TO not make this fail in CairoMakie, we dont actually plot the volume _f, ax, cp = contour(x, y, z, values; levels=10, colormap=:viridis) - Colorbar(fig[2, 1], cp; size=300) - - _f, ax, vs = volumeslices(x, y, z, values, colormap=:bluesreds) - Colorbar(fig[2, 2], vs) + Colorbar(fig[2, :], cp; size=300) # horizontal colorbars Colorbar(fig[1, 3][2, 1]; limits=(0, 10), colormap=:viridis, diff --git a/src/makielayout/blocks/colorbar.jl b/src/makielayout/blocks/colorbar.jl index 188d3435de9..75b1a34a617 100644 --- a/src/makielayout/blocks/colorbar.jl +++ b/src/makielayout/blocks/colorbar.jl @@ -47,10 +47,6 @@ function extract_colormap(plot::StreamPlot) return extract_colormap(plot.plots[1]) end -function extract_colormap(plot::Combined{volumeslices}) - return extract_colormap(plot.plots[1]) -end - function extract_colormap(plot::Union{Contourf,Tricontourf}) levels = plot._computed_levels limits = lift(l -> (l[1], l[end]), levels) diff --git a/test/makielayout.jl b/test/makielayout.jl index 4366a1081ff..f2ae4ca3835 100644 --- a/test/makielayout.jl +++ b/test/makielayout.jl @@ -180,13 +180,6 @@ end f, ax, pl = barplot(1:3; color=1:3) cbar = Colorbar(f[1, 2], pl) @test cbar.limits[] == Vec(1.0, 3.0) - - let data = fill(1.0, 2,2,2) - data[1] = 3.0 - f, ax, pl = volumeslices(1:2, 1:2, 1:2, data) - cbar = Colorbar(f[1,2], pl) - @test cbar.limits[] == Vec(1.0, 3.0) - end end end