Skip to content

fix: the notebook display of a point cloud or voxel grid uses the same scale on all axes - #284

Merged
petercorke merged 1 commit into
mainfrom
fix/notebook-display-true-proportions
Nov 25, 2026
Merged

petercorke merged 1 commit into
mainfrom
fix/notebook-display-true-proportions

Conversation

@petercorke

Copy link
Copy Markdown
Owner

PointCloud.disp(notebook=True) and VoxelGrid.disp(notebook=True) (PRs 279 and 282) drew the Plotly figure with Plotly's default aspect mode, "auto". That draws the axes in proportion to their ranges, except when one axis is more than four times longer than the other two. Then it draws a cube, which squashes a long or flat scene. The Open3D window always shows true proportions, so the notebook display now sets scene_aspectmode="data" and does the same. There is no user option, and the docstrings say so.

Tests: the aspect mode is "data" for a long thin point cloud and for a voxel grid. Without the change, the aspect mode of the figure is unset. I ran the full suite and mypy, and both are clean.

AI-assisted: written with Claude Code.

🤖 Generated with Claude Code

…e scale on all axes

Plotly's default aspect mode draws a cube when one axis is more than four times
longer than the other two, which squashes a long or flat scene.  The Open3D
window always shows true proportions, so the notebook display now does too.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit d4256c9 into main Nov 25, 2026
34 checks passed
@petercorke
petercorke deleted the fix/notebook-display-true-proportions branch November 25, 2026 00:11
@github-actions github-actions Bot mentioned this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant