I would like to change the x-axis here to something like [“very low”, “low”, “medium”, “high”, “very high”]. Can someone help me out? Thank you!
using Makie,
CairoMakie
x = [1, 2, 3, 4, 5]
y = [0.20, 0.40, 0.60, 0.80, 1.0]
lines(x, y)
I would like to change the x-axis here to something like [“very low”, “low”, “medium”, “high”, “very high”]. Can someone help me out? Thank you!
using Makie,
CairoMakie
x = [1, 2, 3, 4, 5]
y = [0.20, 0.40, 0.60, 0.80, 1.0]
lines(x, y)
This is the relevant section: https://makie.juliaplots.org/stable/examples/layoutables/axis/#modifying_ticks
You could pass the keyword argument axis = (xticks = (1:5, labels),)
to your lines
call.
thank you!