Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Is there any way to choose x ticks of x- and y-axis seperately?

Hallo eyery one,

I need to adjust the ticks of x- and y-axis independently.
I wan’t to increase the ticks on the x-axis in paces of 1, and the ticks on the y-axis in paces of 0.1.

Is there any way of accomplish that in plotly?


You can set the ticks on the two axes setting the key tickvals in xaxis, respectively yaxis dicts of layout.
For example

layout=dict(xaxis=dict(range=[0, 0.6],
                                   tickvals=[0, 0.2, 0.4, 0.6]),
                             tickvals=[1, 1.5, 2])