Skip to content

Scatter3D marker flickering/clipping while rotating the plot #6505

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

Open
tjnd89 opened this issue Nov 25, 2022 · 5 comments
Open

Scatter3D marker flickering/clipping while rotating the plot #6505

tjnd89 opened this issue Nov 25, 2022 · 5 comments
Labels
bug something broken P3 backlog

Comments

@tjnd89
Copy link

tjnd89 commented Nov 25, 2022

I'm noticing significant flicking/marker clipping while rotating a Scatter3D plot with the mouse.

The code below is a modified form of the example at https://plotly.com/python/3d-scatter-plots/. Note taht the opacity is set to 1.0. As I move around in the plot I see significant clipping/flickering of the markers, particularly when looking along the z-axis. If I change the opacity to 0.8 (like in the example) the flickering goes away. Any opacity other than 1.0 works fine. If you don't specify an opacity property the flickering is present (which is how I found this). I'm using plotly 5.11.0, viewing it in Chrome 107.0.5304.107.

import plotly.graph_objects as go
import numpy as np
import pandas as pd

# Helix equation
t = np.linspace(0, 20, 100)
x, y, z = np.cos(t), np.sin(t), t

z2 = pd.to_datetime('1 Jan 2022') + pd.to_timedelta(t, 'h')

fig = go.Figure(data=[go.Scatter3d(
    x=x,
    y=y,
    z=z2,
    mode='markers',
    marker=dict(
        size=12,
        color=z,                # set color to an array/list of desired values
        colorscale='Viridis',   # choose a colorscale
        opacity=1.0
    )
)])

# tight layout
fig.update_layout(margin=dict(l=0, r=0, b=0, t=0))
fig.show()
@AaronStiff
Copy link

@alexcjohnson I assume this is plotly.js related? Possibly related to #6369 ?

@alexcjohnson
Copy link
Collaborator

Definitely a plotly.js issue, and it goes away if you switch to numeric z data z=z rather than date z=z2. We have some other 3D date issues like #3306 but this looks different so I'll move it over.

@gvwilson
Copy link
Contributor

gvwilson commented Jul 4, 2024

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson

@gvwilson gvwilson closed this as completed Jul 4, 2024
@tjnd89
Copy link
Author

tjnd89 commented Jul 8, 2024

@gvwilson the problem still exists in plotly 5.19.0. It's quite evident as you move around and look down along the z-axis.

@gvwilson
Copy link
Contributor

gvwilson commented Jul 8, 2024

Thanks @tjnd89 - I'll reopen this and add it to our backlog, though it may be a while before someone can get to it :-(

@gvwilson gvwilson reopened this Jul 8, 2024
@gvwilson gvwilson self-assigned this Jul 8, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added bug something broken P3 backlog labels Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 backlog
Projects
None yet
Development

No branches or pull requests

4 participants