Skip to content

Conversation

@cvanelteren
Copy link
Collaborator

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
Collaborator 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
Collaborator 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
Collaborator Author

The PR now contains the HEAD of #236

@codecov
Copy link

codecov bot commented May 30, 2025

Codecov Report

❌ 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 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 and others added 3 commits May 30, 2025 21:23
@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 <175728472+Copilot@users.noreply.github.com>

* 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 <175728472+Copilot@users.noreply.github.com>

* Update ultraplot/figure.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update ultraplot/axes/geo.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Revert changes

* rm duplicate

* fixes

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@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
cvanelteren added a commit that referenced this pull request Aug 14, 2025
* simplified logic and basing reference on original grid

* rm print statements

* spelling

* Update ultraplot/figure.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* do more comprehensive checking

* rm debug

* add some reasoning

* fixed

* add a stale check

* compound tests and check for the failure

* fixed missing functions in grid

* need to fix test

* 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

* added tests

* updated test to check for sharing of panels

* update test

* update test

* Update ultraplot/tests/test_geographic.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* rm unnecessary funcs

* Deprecate basemap (#243)

* Deprecate basemap. Basemap will be deprecated in the next major release (v2.0). See #243 for context.

* Hotfix get_border_axes (#236)

* simplified logic and basing reference on original grid

* rm print statements

* spelling

* Update ultraplot/figure.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* 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 <175728472+Copilot@users.noreply.github.com>

* Update ultraplot/figure.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update ultraplot/axes/geo.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Revert changes

* rm duplicate

* fixes

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor panel_group_member

* mv logic  to base

* mv to the correct spot

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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