using MakieLayout using AbstractPlotting: px using AbstractPlotting scene, layout = layoutscene(resolution = (1400, 900)) ax = layout[1, 1] = LAxis(scene) elem_1 = [LineElement(color = :red, linestyle = nothing), MarkerElement(color = :blue, marker = 'x', strokecolor = :black)] elem_2 = [PolyElement(color = :red, strokecolor = :blue), LineElement(color = :black, linestyle = :dash)] elem_3 = LineElement(color = :green, linestyle = nothing, linepoints = Point2f0[(0, 0), (0, 1), (1, 0), (1, 1)]) elem_4 = MarkerElement(color = :blue, marker = 'π', strokecolor = :transparent, markerpoints = Point2f0[(0.2, 0.2), (0.5, 0.8), (0.8, 0.2)]) elem_5 = PolyElement(color = :green, strokecolor = :black, polypoints = Point2f0[(0, 0), (1, 0), (0, 1)]) leg = layout[1, 2] = LLegend(scene, [elem_1, elem_2, elem_3, elem_4, elem_5], ["Line & Marker", "Poly & Line", "Line", "Marker", "Poly"]) scene