Skip to content

BUG: Don't try to show / autoscale 3D data that lies outside the axis valid scale range#31737

Open
scottshambaugh wants to merge 2 commits into
matplotlib:mainfrom
scottshambaugh:fix-31726-3d-scale-invalid
Open

BUG: Don't try to show / autoscale 3D data that lies outside the axis valid scale range#31737
scottshambaugh wants to merge 2 commits into
matplotlib:mainfrom
scottshambaugh:fix-31726-3d-scale-invalid

Conversation

@scottshambaugh
Copy link
Copy Markdown
Contributor

@scottshambaugh scottshambaugh commented May 22, 2026

PR summary

Closes #31726

Marking for 3.11 as the 3D log behavior is new this version, but I'm not actually clear on the inclusion criteria for bugfixes during an rc cycle.

This keeps the current Scale.val_in_range behavior of returning bare True/False for non-iterable inputs, though that was introduced in 3.11 so could change that before it goes out. Not completely necessary to vectorize that function, but it will get called a lot so I expect performance this way to be better.

AI Disclosure

Claude did the first pass, I cleaned up it after.

PR checklist

@scottshambaugh scottshambaugh added this to the v3.11.0 milestone May 22, 2026
@scottshambaugh scottshambaugh added topic: mplot3d PR: bugfix Pull requests that fix identified bugs labels May 22, 2026
@scottshambaugh scottshambaugh force-pushed the fix-31726-3d-scale-invalid branch from 08f0bac to 629d396 Compare May 22, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Corruption of 3D surface plot at log scale with negative or zero values (v3.11.0rc2)

1 participant