# Makie.jl changing axis to a non-numeric

**URL:** <https://discourse.julialang.org/t/makie-jl-changing-axis-to-a-non-numeric/72781>\
**Category:** New to Julia\
**Tags:** plotting\
**Created:** [December 8, 2021, 3:22pm UTC](https://discourse.julialang.org/t/makie-jl-changing-axis-to-a-non-numeric/72781 "2021-12-08T15:22:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gjh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gjh/32/31762_2.png) [@gjh](https://discourse.julialang.org/u/gjh)\
**Post date:** [December 8, 2021, 3:22pm UTC](https://discourse.julialang.org/t/makie-jl-changing-axis-to-a-non-numeric/72781/1 "2021-12-08T15:22:35Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [December 8, 2021, 3:52pm UTC](https://discourse.julialang.org/t/makie-jl-changing-axis-to-a-non-numeric/72781/2 "2021-12-08T15:52:00Z")

</div>

This is the relevant section: [https://makie.juliaplots.org/stable/examples/layoutables/axis/#modifying\_ticks](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.

---

<div class="post-metadata">

**Author:** ![gjh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gjh/32/31762_2.png) [@gjh](https://discourse.julialang.org/u/gjh)\
**Post date:** [December 8, 2021, 4:45pm UTC](https://discourse.julialang.org/t/makie-jl-changing-axis-to-a-non-numeric/72781/3 "2021-12-08T16:45:47Z")

</div>

thank you!
