Skip to content

Allow colorbar to respect MAP_ORIGIN_X and MAP_ORIGIN_Y#9098

Merged
Esteban82 merged 1 commit into
masterfrom
fix-7625_XY-Origin
Jul 11, 2026
Merged

Allow colorbar to respect MAP_ORIGIN_X and MAP_ORIGIN_Y#9098
Esteban82 merged 1 commit into
masterfrom
fix-7625_XY-Origin

Conversation

@Esteban82

Copy link
Copy Markdown
Member

Done with Claude Sonnet 5

Now, colorbar respects gmt set MAP_ORIGIN_X/Y.

Test with:

gmt set MAP_ORIGIN_X 20c MAP_ORIGIN_Y 20c

gmt begin sp png
    gmt makecpt -Crainbow -T0/10 -H > t.cpt
    gmt subplot begin 1x2 -Baf -BWSen -Fs10/10
        gmt basemap -Ba -JX -R0/30/0/30
        gmt colorbar -Ct.cpt -DJRM
    gmt subplot end
gmt end
sp

Fixes #7625

@Esteban82 Esteban82 requested review from a team and joa-quim July 11, 2026 18:34
@Esteban82 Esteban82 added add-changelog Add PR to the changelog AI-assisted All (or most) of the code was written by Artificial Intelligence. labels Jul 11, 2026

@joa-quim joa-quim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ahah, same strategy of another recent fix. Looks good.

@Esteban82 Esteban82 merged commit 7c86d0f into master Jul 11, 2026
10 of 14 checks passed
@Esteban82 Esteban82 deleted the fix-7625_XY-Origin branch July 11, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

add-changelog Add PR to the changelog AI-assisted All (or most) of the code was written by Artificial Intelligence.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MAP_ORIGIN_X|Y in a gmt.conf screws up the location of colorbar (and likely other -D type options) in modern mode

2 participants