AlgebraOfGraphics.jl
AlgebraOfGraphics.jl copied to clipboard
Position of xlabel does not respect top xaxisposition when there are multiple columns
Bug description
When setting the xaxisposition to :top, the x-labels does not display above the top spine. I would expect the x-label to be above the, now, top x-axis.
Note that when there is only one column, the x-label does correctly display above the top x-axis.
Steps to reproduce
Here is a MWE:
using GLMakie, AlgebraOfGraphics
df = (; x = rand(10), y = rand(10), col = rand(("left", "right"), 10))
data(df) * mapping(:x => "X label", :y, col = :col) * visual(Scatter) |> draw(; axis = (; xaxisposition = :top))
Images
Version info
julia> versioninfo()
Julia Version 1.11.5
Commit 760b2e5b739 (2025-04-14 06:53 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 32 × AMD Ryzen Threadripper 2950X 16-Core Processor
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, znver1)
Threads: 1 default, 0 interactive, 1 GC (on 32 virtual cores)
julia> Pkg.status()
Status `/tmp/jl_7NybZ7/Project.toml`
[cbdf2221] AlgebraOfGraphics v0.11.0
[e9467ef8] GLMakie v0.12.0