Skip to content

scene aspectmodes "cube" or "manual" do not work with Scatter3D #2511

@Chandler

Description

@Chandler

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.
Screen Shot 2020-05-27 at 1 09 15 PM

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions