Skip to content

Conversation

@joa-quim
Copy link
Member

This addresses one of the points raised in the Forum issue https://forum.generic-mapping-tools.org/t/colour-scheme-without-outline/5967

Now we can do psscale -Dx6.5/1+w340p/36p+h -B+n -Ccyclic > cyclic.ps and have no frames at all.

I would like also that -B0 did that work (a nicer syntax, IMO) and in fact, this PR also implements it but it requires that GMT is built with -DB0_IS_NO_FRAME. The reason for wrapping it in a #ifdef is that changing -B0 to do what it originally should have been since the beginning (that is, to DO NOT PLOT ANY FRAME, ANNOTS AT ALL) is a breaking change. I would like, however, to discuss if we should do it nevertheless.

This addresses one of the points raised in the Forum issue
https://forum.generic-mapping-tools.org/t/colour-scheme-without-outline/5967

Now we can do `psscale -Dx6.5/1+w340p/36p+h -B+n -Ccyclic > cyclic.ps` and have no frames at all.

I would like also that `-B0` did that work (a nicer syntax, IMO) and in fact, this PR also implements it but it requires that GMT is built with `-DB0_IS_NO_FRAME`. The reason for wrapping it in a `#ifdef` is that changing `-B0` to do what it originally should have been since the beginning (that is, to DO NOT PLOT ANY FRAME, ANNOTS AT ALL) is a breaking change. I would like, however, to discuss if we should do it nevertheless.
@joa-quim joa-quim requested a review from a team May 29, 2025 22:58
Copy link
Member

@Esteban82 Esteban82 left a comment

Choose a reason for hiding this comment

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

Works for me.

@Esteban82 Esteban82 added the add-changelog Add PR to the changelog label May 30, 2025
@joa-quim
Copy link
Member Author

I can't find where is -B0 documented. Because if it isn't we could still make -B0 == -B+n, that is no frames at all. What -B0 currently does can also be achieved with -Blrbt

@Esteban82
Copy link
Member

I didn't see the comment on the discussion.
Would this cause would break backwards compatibility? I believe I have used -B+n for maps and had no frame at all.

@joa-quim
Copy link
Member Author

Would this cause would break backwards compatibility?

Only if -B0 is documented. But it would break some tests that use it (nothing serious, though).

@joa-quim
Copy link
Member Author

Ok, I'm going to merge this and leave discussion to #8740

@joa-quim joa-quim merged commit 8e8f8ca into master May 30, 2025
11 of 13 checks passed
@joa-quim joa-quim deleted the fix-psscale-B+n branch May 30, 2025 19:16
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants