Repository navigation
Keep the -p pivot in place when +w is given without +v - #9312
Merged
Merged
Conversation
With -p<az>/<elev>+w<lon>/<lat> and no +v, gmtmap_init_three_D used the page center as the default page position of the +w pivot. That offset is applied on top of the current origin, so the rotated layer jumped away from its unrotated place, and it disagreed with -p180/90 (handled as 2-D) and with the azimuth-only -p<az>+w path, which both keep the pivot where it is (test/psbasemap/poption.sh). Without +v, keep the pivot at its unrotated 2-D map position; +v still sets its page position, so that case is unchanged. Remove the known-failure flag from poption.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Summary of changed imagesThis is an auto-generated report of images that have changed on the DVC remote
Image diff(s)Report last updated at commit 3b40447 |
joa-quim
approved these changes
Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Claude's Analysis:
With
-p<az>/<elev>+w<lon>/<lat>and no+v, the default page position of the pivot was the page center, added on top of the current origin, so the rotated layer jumped away from its unrotated place and did not match-p180/90or the azimuth-only-p<az>+wpath.Now the pivot stays where the unrotated plot puts it (
+vstill sets its page position), andtest/psbasemap/poption.shloses its known-failure flag. Scripts that use+wwithout+vwill see the rotated layer move.Tested with:
The black layer is rotated 45° about the South Pole (
+w0/-90); the blue one is the same map unrotated. Since the pivot is the map center, both circles should coincide.This fixes the known-failure test
test/psbasemap/poption.sh: its flag is removed and its baseline added.🤖 Generated with Claude Code (Claude Opus 5.5).