# Dynamic tick labels

**URL:** https://discourse.julialang.org/t/dynamic-tick-labels/79802
**Category:** General Usage
**Tags:** pyplot, plots, plotlyjs, inspectdr
**Created:** [April 21, 2022, 9:17pm UTC](https://discourse.julialang.org/t/dynamic-tick-labels/79802 "2022-04-21T21:17:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chadagreene](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chadagreene/32/34924_2.png) [@chadagreene](https://discourse.julialang.org/u/chadagreene)
#### Post date: [April 21, 2022, 9:17pm UTC](https://discourse.julialang.org/t/dynamic-tick-labels/79802/1 "2022-04-21T21:17:06Z")

</div>

I have a simple plot like this:

```julia
using Plots 
plot(sind.(1:360))

```

It looks good by default, but when I use the pan and zoom tools to explore the plot, the x and y tick labels don’t automatically update with the changing axis limits. Is there a way to turn on dynamic tick labels?

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [April 21, 2022, 10:12pm UTC](https://discourse.julialang.org/t/dynamic-tick-labels/79802/2 "2022-04-21T22:12:57Z")

</div>

See solution [here](https://discourse.julialang.org/t/automatic-adjustment-of-ticks-when-zooming-with-plots-jl/5055/4). For instance, using the `pyplot()` backend:

```julia
using Plots; pyplot()
plot(sind.(1:360), ticks=:native)

```

This also works for the other interactive backends: `plotly()`, `plotlyjs()` or `inspectdr()`

---

<div class="post-metadata">

### Author: ![chadagreene](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chadagreene/32/34924_2.png) [@chadagreene](https://discourse.julialang.org/u/chadagreene)
#### Post date: [April 21, 2022, 10:34pm UTC](https://discourse.julialang.org/t/dynamic-tick-labels/79802/3 "2022-04-21T22:34:31Z")

</div>

Thanks @rafael.guerra! The tick labels are now dynamic with:

```julia
plotlyjs()
plot(sind.(1:360), ticks=:native)

```

Thanks for the help!
