Layouts
Reproducible figure sizes designed for A4 portrait documents.
Subdivide
Foresight.subdivide Function
julia
subdivide(f, nrows::Int, ncols::Int)::Matrix{GridPosition}
Subdivides a figure f
into a grid with specified number of rows and columns. Returns the corresponding grid positions
Example
julia
sourcef = Figure()
gs = subdivide(f, 2, 2)
axs = Axis.(gs)
display(f)
Panels
OnePanel
julia
f = OnePanel()
gs = subdivide(f, 1, 1)
addlabels!(gs)
f
TwoPanel
julia
f = TwoPanel()
gs = subdivide(f, 1, 2)
addlabels!(gs)
f
FourPanel
julia
f = FourPanel()
gs = subdivide(f, 2, 2)
addlabels!(gs)
f
SixPanel
julia
f = SixPanel()
gs = subdivide(f, 3, 2)
addlabels!(gs)
f