Skip to content

create 3D plot example with non-cube aspect ratio #46

@AdityaSavara

Description

@AdityaSavara

Currently, the default3d layout style has a cube for the axes ratios.
We have aspectmode = "cube".

It would be good to provide an example which shows aspectmode='data'
and also aspectmode='manual' with aspectratio set by the user like aspectmode=dict(x=0.25, y=0.50, z=1.0) etc.
https://stackoverflow.com/questions/52863305/plotly-scatter3d-how-can-i-force-3d-axes-to-have-the-same-scale-aspect-ratio
https://community.plotly.com/t/creating-a-3d-scatterplot-with-equal-scale-along-all-axes/15108

The way the example will go is it will populate data, and then will apply layout_style of default3d, then apply layout_style of none and modify. Attached is a simple file that could be used (or modified and then used). When aspectmode is not set to cube, this file has an aspect ratio of a rectangular prism.

Froggers.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions