plotly / plotly/dash

Plotly Figure scale not respected for Mesh3d figure

Open
#2,786 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3 sev-4
Dominant language
Python
Stars
24.4k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
13

Description

Context

dash                         2.15.0
dash-core-components         2.0.0
dash-html-components         2.0.0
dash-table                   5.0.0
  • OS : Windows 10
  • Browser : Opera GX (core: 107.0.5045.37)
  • Python : 3.10.11

The bug

I am encountering an issue with the scaling of axes in a 3D plot created using Dash and Plotly. Specifically, I have created a Mesh3d figure with dimensions of 2 by 2 by 2. However, upon visualization, it is apparent that the scaling of the y-axis is not accurately represented. Despite the grid displaying the correct values, the y-axis appears significantly smaller than the other axes.

This happen when I switch from a Scatter3d figure to a Mesh3d figure

Expected behavior

The scaling of all axes (x, y, and z) should accurately represent the dimensions of the figure, with each axis spanning from -1 to 1.

Screenshots
Initial (Expected) :
image

Switch to Scatter3d
image

Switch back to Mesh3d
image

image

Video

https://github.com/plotly/dash/assets/81401725/9a2da42a-fbc5-4a90-9d4e-eff494405c48

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported Dash 2.15.0 case with a 2-by-2-by-2 Mesh3d figure, then compare it with the Scatter3d version described in the issue. The work is done when the x, y, and z axes all render the expected -1 to 1 scale for Mesh3d.

Written by the indexing model from the issue text.

Assessment

Tech stack
plotly, python
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.