Skip to content

Isosurface and other 3D types prevent Scatterplot hover #6669

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
creative-resort opened this issue Jul 10, 2023 · 0 comments
Open

Isosurface and other 3D types prevent Scatterplot hover #6669

creative-resort opened this issue Jul 10, 2023 · 0 comments
Labels
bug something broken P3 backlog

Comments

@creative-resort
Copy link

As this is ultimately a plotly.js issue, I'm referencing the following issue from plotly.py
Isosurface and other 3D types prevent Scatterplot hover

When plotting an Isosurface, Mesh3D etc, and also a Scatter3D trace,
the Isosurface object seems to prevent the hover functionality of the Scatter-Plot when trying to hover over a Scatter3D marker,
even though the Isosurface's hoverinfo parameter has been set to "skip".

reproducible example (written in Python, but illustrates the issue and produces the HTML and JS):

from pandas import DataFrame as DF
import plotly.graph_objects as go

df = DF([(20,10,400)])
plot = go.Figure()
plot.add_trace(go.Isosurface(
                    x=[5,5,5,5,50,50,50,50],
                    y=[25,0,25,0,25,0,25,0],
                    z=[500,500,0,0,500,500,0,0],
                    value=[1,2,3,4,5,6,7,8],

                    hoverinfo='skip',
                    opacity=0.05,
                    colorscale=[[0,'yellow'],[1,'yellow']],
                    showscale=False
                )
)

plot.add_trace(go.Scatter3d(
    x=df[0], y=df[1], z=df[2],
    mode='markers', marker={'color': 'midnightblue', 'size': 5}, opacity=1,
    name='scatterplot'
    )
)

plot.show()
@gvwilson gvwilson self-assigned this Jul 5, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson changed the title BUG: Isosurface and other 3D types prevent Scatterplot hover Isosurface and other 3D types prevent Scatterplot hover Aug 9, 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

2 participants