Some points not included in range of axes of 3D Axes in Python
Open
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:
# ubuntu20.04LTS
plotly==5.5.0
when run:
import numpy as np
import plotly.graph_objects as go
x = np.array([2, 0, 2, 4], dtype=np.float64)
y = np.array([2, 0, 2, 0], dtype=np.float64)
z = np.array([4, 0, 0, 0], dtype=np.float64)
fig = go.Figure(data=[go.Mesh3d(x=x, y=y, z=z, opacity=0.5)])
fig.show()
Why not contain (2, 2, 0) in the graph?

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided Mesh3d reproduction with Python, NumPy, and Plotly 5.5.0 to confirm why (2, 2, 0) is outside the displayed 3D axis range. Trace the Mesh3d axis-range handling, then verify that all supplied points are included in the graph.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100