# Change xticklabels in PolarAxis (GLMakie)

**URL:** https://discourse.julialang.org/t/change-xticklabels-in-polaraxis-glmakie/120811
**Category:** General Usage
**Tags:** question, plotting, makie
**Created:** [October 2, 2024, 12:47pm UTC](https://discourse.julialang.org/t/change-xticklabels-in-polaraxis-glmakie/120811 "2024-10-02T12:47:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![NaSi](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@NaSi](https://discourse.julialang.org/u/NaSi)
#### Post date: [October 2, 2024, 12:47pm UTC](https://discourse.julialang.org/t/change-xticklabels-in-polaraxis-glmakie/120811/1 "2024-10-02T12:47:33Z")

</div>

Hello =)

I work with GLMakie and I want to plot the following :

```julia
rticklabels = ["a", "b", "c", "d", "e", "f", "g"] 
rticks = 0:10:60
f = Figure(size = (800, 400))
ax = PolarAxis(f[1, 1], rticks = rticks, rticklabels = rticklabels)
lineobject = lines!(ax, θ,valeur_wgrid_smoothed_viz, color = :red)
f

```

I want to change the xtick labels with a, b, c, d … but it doesn’t work.  
Could you help ?

Thanks =)

---

<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: [October 2, 2024, 1:09pm UTC](https://discourse.julialang.org/t/change-xticklabels-in-polaraxis-glmakie/120811/2 "2024-10-02T13:09:33Z")

</div>

Pass the ticks and labels as a tuple to `rticks`

---

<div class="post-metadata">

### Author: ![NaSi](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@NaSi](https://discourse.julialang.org/u/NaSi)
#### Post date: [October 2, 2024, 1:51pm UTC](https://discourse.julialang.org/t/change-xticklabels-in-polaraxis-glmakie/120811/3 "2024-10-02T13:51:33Z")

</div>

Sorry, I am new to Julia and i don’t understand what you mean.  
I tried this but it won’t work either :

```julia
f = Figure(size = (800, 400))
ax = PolarAxis(f[1, 1])
for j in 1:length(liste)
    lineobject = lines!(ax, θ,valeur_wgrid_smoothed_viz[:,j], linewidth = 3)
end
ticks = 0:10:60
labels = ["a", "b", "c", "d", "e", "f", "g"] # Corresponding labels for the ticks
set_ticks!(ax, ticks, labels)
f

```

---

<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: [October 2, 2024, 2:19pm UTC](https://discourse.julialang.org/t/change-xticklabels-in-polaraxis-glmakie/120811/4 "2024-10-02T14:19:11Z")

</div>

Where did you get `set_ticks!`? You can look for examples setting manual ticks on Axis in the docs, it works the same way for PolarAxis in principle
