I would like to have finer controls over the tick and label spacing from the axes in plotting3d. The issue is reproduced with:
x, y, z = np.random.rand(100, 3).T
x *= 5
y *= 2
data = [go.Scatter3d(
x=x, y=y, z=z,
mode='markers',
marker=dict(color="black", size=3))]
fontdict = dict(tickfont=dict(size=10))
layout = go.Layout(
width=500,
height=400,
showlegend=False,
margin=dict(l=0, r=0, t=0, b=0, pad=0),
scene=dict(aspectmode="data",
xaxis=fontdict, yaxis=fontdict, zaxis=fontdict)
)
fig = go.Figure(data=data, layout=layout)
iplot(fig)
I would simply like to have the ticks and the labels be closer to the axis.
Is there a tick property that allows this? like the pad
params from matplotlib.
Thanks