plotly / plotly/plotly.py

Isosurface and other 3D types prevent Scatterplot hover

Open
#1,777 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

plotly version: 4.1.0

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:

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()

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 running the provided Python reproduction with an Isosurface and Scatter3d trace, then inspect the hover behavior when the Isosurface uses hoverinfo='skip'. Trace the 3D hover handling for these trace types and verify that Scatter3d markers remain hoverable while the Isosurface does not capture hover events.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
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.