using MakieLayout using AbstractPlotting: px using AbstractPlotting: px using AbstractPlotting scene, layout = layoutscene(resolution = (1400, 900)) ax = layout[1, 1] = LAxis(scene) xs = 0:0.5:10 ys = sin.(xs) lin = lines!(ax, xs, ys, color = :blue) sca = scatter!(ax, xs, ys, color = :red, markersize = 15px) leg = LLegend(scene, [lin, sca, lin], ["a line", "some dots", "line again"]) layout[1, 2] = leg leg_horizontal = LLegend(scene, [lin, sca, lin], ["a line", "some dots", "line again"], orientation = :horizontal, width = Auto(), height = Auto(), tellwidth = false, tellheight = true, ) layout[2, 1] = leg_horizontal scene