Skip to content

Fix issue where single object returns object itself#666

Merged
cvanelteren merged 3 commits intomainfrom
hotfix/gridspec
Mar 30, 2026
Merged

Fix issue where single object returns object itself#666
cvanelteren merged 3 commits intomainfrom
hotfix/gridspec

Conversation

@cvanelteren
Copy link
Copy Markdown
Collaborator

Closes #665

Fixes regression where single object is not returning a subplotgrid where it should.

@cvanelteren
Copy link
Copy Markdown
Collaborator Author

Need to update some of the past tests -- other than that this is good.

@cvanelteren
Copy link
Copy Markdown
Collaborator Author

Actually found a non-related bug through this process.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 30, 2026

Codecov Report

❌ Patch coverage is 89.47368% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
ultraplot/tests/test_gridspec.py 85.71% 1 Missing and 1 partial ⚠️
ultraplot/tests/test_subplots.py 77.77% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@cvanelteren cvanelteren enabled auto-merge (squash) March 30, 2026 21:18
@cvanelteren cvanelteren merged commit 2cd92c4 into main Mar 30, 2026
19 checks passed
@cvanelteren cvanelteren deleted the hotfix/gridspec branch March 30, 2026 21:25
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.

SubplotGrid slice indexing squeezes single-element result to bare CartesianAxes (regression in 2.x)

1 participant