Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Hotfix panel #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
Jun 3, 2025
Merged

Hotfix panel #238

merged 35 commits into from
Jun 3, 2025

Conversation

cvanelteren
Copy link
Contributor

Added some functions that were missing. This would address #237

@cvanelteren cvanelteren marked this pull request as draft May 29, 2025 08:55
@cvanelteren
Copy link
Contributor Author

Not sure how helpful panels would be for GeoAxes but the api should be consistent or raise a warning.

@cvanelteren cvanelteren mentioned this pull request May 29, 2025
@cvanelteren
Copy link
Contributor Author

cvanelteren commented May 30, 2025

The test will produce this when saved but not when viewing. This is not related to the PR I believe, but should be marked as suspicious for the future.

test

@cvanelteren
Copy link
Contributor Author

The PR now contains the HEAD of #236

Copy link

codecov bot commented May 30, 2025

Codecov Report

Attention: Patch coverage is 97.87234% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
ultraplot/tests/test_geographic.py 97.36% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@cvanelteren cvanelteren requested a review from Copilot May 30, 2025 19:22
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a hotfix that addresses missing functions along with updates to tests for geographic plotting and formatting. Key changes include:

  • Adding a new test for geo panels and colorbar behavior in geographic plots.
  • Adjusting assertions and share parameter usage in formatting and axis sharing tests.
  • Updating the border axes detection logic and introducing a helper for panel group membership in GeoAxes.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ultraplot/tests/test_geographic.py Added colorbar testing and updated assertions for shared labels.
ultraplot/tests/test_format.py Updated test calls to include explicit share parameters.
ultraplot/tests/test_axes.py Revised label visibility assertions and removed duplicate helpers.
ultraplot/figure.py Refined border axes detection with a grid-based approach.
ultraplot/axes/geo.py Introduced panel group membership logic and improved sharing logic.

@cvanelteren cvanelteren marked this pull request as ready for review June 2, 2025 15:47
cvanelteren and others added 2 commits June 2, 2025 17:49
* Deprecate basemap. Basemap will be deprecated in the next major release (v2.0). See Ultraplot#243 for context.
* simplified logic and basing reference on original grid

* rm print statements

* spelling

* Update ultraplot/figure.py

Co-authored-by: Copilot <[email protected]>

* do more comprehensive checking

* rm debug

* add some reasoning

* fixed

* add a stale check

* compound tests and check for the failure

* update calls

* update tests

* formatting restored to defaults

* don't adjust labels when not sharing

* tests pass -- some expected failures

* rm debug statements

* fix test

* Update ultraplot/tests/test_geographic.py

Co-authored-by: Copilot <[email protected]>

* Update ultraplot/figure.py

Co-authored-by: Copilot <[email protected]>

* Update ultraplot/axes/geo.py

Co-authored-by: Copilot <[email protected]>

* Revert changes

* rm duplicate

* fixes

---------

Co-authored-by: Copilot <[email protected]>
@cvanelteren cvanelteren requested a review from beckermr June 2, 2025 15:50
@beckermr beckermr merged commit 0b2ef5b into Ultraplot:main Jun 3, 2025
15 checks passed
@cvanelteren cvanelteren deleted the hotfix_panel branch June 3, 2025 10:01
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.

2 participants