-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Description
Example from the plotly docs, with aspect mode set to cube.
import plotly.graph_objects as go
import numpy as np
# Helix equation
t = np.linspace(0, 10, 50)
x, y, z = np.cos(t), np.sin(t), t
layout = go.Layout(scene=dict(aspectmode="cube"))
fig = go.Figure(
data=[go.Scatter3d(x=x, y=y, z=z,mode='markers')],
layout=layout)
fig.show()
On the x and y axis, one grid unit is length 0.5. On the z axis one grid unit is length 2.
These should be displayed with equal lengths if the aspect ratio is a cube. Same issue with 'go.Layout(scene=dict(aspectmode="manual", aspectratio=dict(x=1, y=1, z=1)))'
This help post indicates this should work or worked in the past cc @empet
https://community.plotly.com/t/creating-a-3d-scatterplot-with-equal-scale-along-all-axes/15108
Thank you.
basnijholt, Conchylicultor, LeonardoLupori, rajkundu, ChiCheng45 and 1 more