diff --git a/src/Foresight.jl b/src/Foresight.jl index ccc13f1..8fef250 100644 --- a/src/Foresight.jl +++ b/src/Foresight.jl @@ -15,6 +15,7 @@ using Requires # end export foresight, importall, freeze!, clip, hidexaxis!, hideyaxis!, axiscolorbar, + reverselegend!, scientific, lscientific """ @@ -256,6 +257,12 @@ function beep() end end +function reverselegend!(l::Legend) + entrygroups = l.entrygroups[] + entrygroups[1][2] .= entrygroups[1][2] |> reverse + l.entrygroups[] = entrygroups +end + """ importall(module) diff --git a/src/Layouts.jl b/src/Layouts.jl index b415f7e..2692062 100644 --- a/src/Layouts.jl +++ b/src/Layouts.jl @@ -4,19 +4,19 @@ import Makie.GridLayoutBase.GridContent # * A set of consistent figure layouts function OnePanel(args...; kwargs...) - f = Figure(args...; size = (360, 360)) + f = Figure(args...; size = (360, 300)) return f end function TwoPanel(args...; kwargs...) - f = Figure(args...; size = (720, 320)) + f = Figure(args...; size = (720, 300)) return f end function FourPanel(args...; kwargs...) - f = Figure(args...; size = (720, 640)) + f = Figure(args...; size = (720, 600)) return f end function SixPanel(args...; kwargs...) - f = Figure(args...; size = (720, 960)) + f = Figure(args...; size = (720, 900)) return f end