Dynamic tick labels

I have a simple plot like this:

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?

See solution here. For instance, using the pyplot() backend:

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

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

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

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

Thanks for the help!

1 Like