Black Lives Matter. Please consider donating to Black Girls Code today.

Dtickrange on Python offline plots

Is is possible to use dtickrange with the Python offline plotting?

I get “Invalid property specified for object of type plotly.graph_objs.layout.YAxis: ‘dtickrange’” when I try.

I could be using the wrong syntax, since I couldn’t find a good example of the Python usage.

@crj11, There is no dtickrange key for yaxis or xaxis If you define

xaxis=dict(range=[2,5]) then the ticks will be marked between 2 and 5. Eventually you can set dtick=1, i.e. the distance between two consecutive ticks is 1.