Coloring individual tick labels in Makie

Datseris
Fri, 20 Feb 2026 12:37:36 +0000
Visualization

Is it possible to color individual labels in Makie?

Example:

fig, ax = scatter(1:5, 1:5)
ax.xticks = 1:5
ax.xticklabelcolor = [:white, :white, :red, :red, :white]
fig

which errors.

Context: I have this plot:

and I want to highlight some entries of the x axis of the 2nd panel as having some special property. I was going to make the labels red but this doesn’t work.

Any other suggestions for highlighting?

5 posts - 3 participants