# How to get value of ticks?

**URL:** <https://discourse.julialang.org/t/how-to-get-value-of-ticks/100938>\
**Category:** General Usage\
**Tags:** makie\
**Created:** [June 28, 2023, 4:32pm UTC](https://discourse.julialang.org/t/how-to-get-value-of-ticks/100938 "2023-06-28T16:32:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![panbroggi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/panbroggi/32/24761_2.png) [@panbroggi](https://discourse.julialang.org/u/panbroggi)\
**Post date:** [June 28, 2023, 4:32pm UTC](https://discourse.julialang.org/t/how-to-get-value-of-ticks/100938/1 "2023-06-28T16:32:59Z")

</div>

Hi everyone,

I am trying to get the value of the ticks in a plot, but they appear to change before showing the plot. The function prints` Float32[0, 5, 10]` while the actual ticks are [0; 0.5; 1.0].

```julia
using GLMakie

fig, ax, lin = lines(0..2, sin)
@show ax.xaxis.tickvalues[]
current_figure()

```

---

<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:** [June 28, 2023, 5:40pm UTC](https://discourse.julialang.org/t/how-to-get-value-of-ticks/100938/2 "2023-06-28T17:40:29Z")

</div>

Yeah ticks are nowadays computed first right before showing the figure, and not after adding each plot, because that can take a while if you add many plots. You can call `reset_limits!(ax)` to do it manually

---

<div class="post-metadata">

**Author:** ![panbroggi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/panbroggi/32/24761_2.png) [@panbroggi](https://discourse.julialang.org/u/panbroggi)\
**Post date:** [June 29, 2023, 6:44am UTC](https://discourse.julialang.org/t/how-to-get-value-of-ticks/100938/3 "2023-06-29T06:44:13Z")

</div>

Thank you for the prompt and effective reply! That fixed it.
