Skip to content

problem with ticklabelcolor #5513

@AdamWysokinski

Description

@AdamWysokinski

Makie v0.24.8, GLMakie

There is a rare problem with ticklabelcolor when provided as a vector and when the number of ticks is larger than visible by lims:

using GLMakie
fig = Figure()
ycl = repeat([:red], 20)
ycl[1] = :black
ax = GLMakie.Axis(fig[1, 1],
                  yticks=20:-1:1,
                  yticklabelcolor=ycl,
                  xticks=1:10)
GLMakie.scatter!(rand(1:20, 20),
                 rand(1:20, 20))
ylims!(ax, 1, 10)
xlims!(ax, 1, 10)
BoundsError: attempt to access 10-element Vector{ColorTypes.RGBA{Float32}} at index [11:12]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions