Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Plotly Figure scale not respected for Mesh3d figure #2786

Open
GalTechDev opened this issue Mar 7, 2024 · 7 comments
Open

[BUG] Plotly Figure scale not respected for Mesh3d figure #2786

GalTechDev opened this issue Mar 7, 2024 · 7 comments

Comments

@GalTechDev
Copy link

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

2024-03-07.13-48-08.mp4
@GalTechDev GalTechDev changed the title Plotly Figure scale not respected for Mesh3d figure [Bug] Plotly Figure scale not respected for Mesh3d figure Mar 7, 2024
@GalTechDev GalTechDev changed the title [Bug] Plotly Figure scale not respected for Mesh3d figure [BUG] Plotly Figure scale not respected for Mesh3d figure Mar 7, 2024
@Coding-with-Adam
Copy link

hi @GalTechDev
Thank you for reporting this. Can you please share a MRE so we can replicate this error locally?

@GalTechDev
Copy link
Author

@Coding-with-Adam
Copy link

Thanks for sharing @GalTechDev
It's really weird because, using your code, I can't even see the gray background of the axes.

image

@GalTechDev
Copy link
Author

Hi @Coding-with-Adam at Line 105 I forgot to switch visibility to True when I upload my code, this will show you the grey grid

@Coding-with-Adam
Copy link

Indeed, I was able to replicate the same error. It seems like the scaling gets messed up when the callback fires and switches function from "plot" to "mesh".

@brandonmiyamoto
Copy link

Hi, I'm very new to open source projects and I am looking to make my first contribution. Would this bug be a reasonable first issue?
If so, what is the general protocol I should adhere to?

Not to sound helpless, I just want to make sure I can make a meaningful contribution.

Thanks.

@GalTechDev
Copy link
Author

Hi @brandonmiyamoto
I don't know how hard this bug can be to fix, but it will really help me with my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants