Is it possible to change the color of the grid (not the grid lines) in a plotly express scatter_3d plot? Or do I need to use graph_objects.Scatter3d?
Hey @pelli , welcome to community.
Did you mean something like below ?
import plotly.graph_objects as go
import numpy as np
t = np.linspace(0, 10, 50)
x, y, z = np.cos(t), np.sin(t), t
fig = go.Figure(data=[go.Scatter3d(x=x, y=y, z=z, mode='markers')])
fig.update_layout(paper_bgcolor='pink', #Paper background
scene=dict(aspectratio=dict(x=6, y=2, z=1), #3d axes ratio
xaxis=dict(backgroundcolor='red'),
yaxis=dict(backgroundcolor='purple'), #axes background
zaxis=dict(backgroundcolor='orange')
)
)
fig.show()
2 Likes