Skip to content

Top xaxisposition overlaps with column labels #669

@yakir12

Description

@yakir12

Bug description

When setting the xaxisposition to :top, the xaxis tick labels overlap with the column labels. I would expect the column labels to automatically "bump" further up to avoid this.

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, :y, col = :col) * visual(Scatter) |> draw(; axis = (; xaxisposition = :top))

Images

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions