How to turn off minor tick labels in PlotlyJS.jl

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

Example:
1633523945

Any help/suggestions would be appreciated :slight_smile:

1 Like

Based on this 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

2 Likes

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.

1 Like

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

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