# How to turn off minor tick labels in PlotlyJS.jl

**URL:** https://discourse.julialang.org/t/how-to-turn-off-minor-tick-labels-in-plotlyjs-jl/69301
**Category:** Visualization
**Tags:** question, plotlyjs
**Created:** [October 6, 2021, 12:40pm UTC](https://discourse.julialang.org/t/how-to-turn-off-minor-tick-labels-in-plotlyjs-jl/69301 "2021-10-06T12:40:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![deepakvinod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/deepakvinod/32/29098_2.png) [@deepakvinod](https://discourse.julialang.org/u/deepakvinod)
#### Post date: [October 6, 2021, 12:40pm UTC](https://discourse.julialang.org/t/how-to-turn-off-minor-tick-labels-in-plotlyjs-jl/69301/1 "2021-10-06T12:40:23Z")

</div>

Hi,

I am trying to figure out how to turn off the minor tick labels in PlotlJS as they are too crowded and overlapping for log scale axes.

I could not find anything here: [Layout.xaxis in Julia](https://plotly.com/julia/reference/layout/xaxis/)

Example:  
 ![1633523945](https://global.discourse-cdn.com/julialang/original/3X/d/b/db79bbea1d422923331947d5b0ee5a96a4d9e423.png)

Any help/suggestions would be appreciated 🙂

---

<div class="post-metadata">

### Author: ![disberd](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@disberd](https://discourse.julialang.org/u/disberd)
#### Post date: [October 6, 2021, 12:51pm UTC](https://discourse.julialang.org/t/how-to-turn-off-minor-tick-labels-in-plotlyjs-jl/69301/2 "2021-10-06T12:51:44Z")

</div>

Based on [this](https://community.plotly.com/t/logarifmic-axis-minor-tick-lables-removing/32777/3) discussion on the plotly forum on the same subject it doesn’t seem you can disable just the minor ticks via a flag or something like that at the moment.

Your only option (which is definitely sub-optimal) is to manually provide the ticks to sue usin `layout.yaxis.tickvals` like in the forum example

Edit: Seems there is also another alternative if you don’t care removing the grid lines as well [here](https://github.com/plotly/plotly.js/issues/2554)

---

<div class="post-metadata">

### Author: ![deepakvinod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/deepakvinod/32/29098_2.png) [@deepakvinod](https://discourse.julialang.org/u/deepakvinod)
#### Post date: [October 6, 2021, 1:03pm UTC](https://discourse.julialang.org/t/how-to-turn-off-minor-tick-labels-in-plotlyjs-jl/69301/3 "2021-10-06T13:03:20Z")

</div>

Thank you! I had seen the first discussion but not the second. `dticks = 1` does get rid of the minor ticks but I was hoping that there might be a way to keep the minor ticks while just turning off their labels.

---

<div class="post-metadata">

### Author: ![disberd](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@disberd](https://discourse.julialang.org/u/disberd)
#### Post date: [June 21, 2022, 4:13pm UTC](https://discourse.julialang.org/t/how-to-turn-off-minor-tick-labels-in-plotlyjs-jl/69301/4 "2022-06-21T16:13:39Z")

</div>

It would seem that minor ticks are now supported in the latest plotly version [Implement options to draw `minor` ticks and grid lines in Cartesian subplots by archmoj · Pull Request #6166 · plotly/plotly.js · GitHub](https://github.com/plotly/plotly.js/pull/6166)

Unfortunately, you can’t easily change version of plotly in PlotlyJS.jl
