Skip to content

Let colorbar handle CPTs with transparency#5328

Merged
PaulWessel merged 2 commits intomasterfrom
colorbar-transparency
Jun 12, 2021
Merged

Let colorbar handle CPTs with transparency#5328
PaulWessel merged 2 commits intomasterfrom
colorbar-transparency

Conversation

@PaulWessel
Copy link
Member

If the CPT has slices with specified transparency then we now honor that. For discrete CPTs you may have all or individual slices be transparent, while for continuous CPTs you must either have all or no slices be transparent. The only case we are not handling is continuous CPTs with a section that implies a change in transparency. I added a test to demonstrate this capability:

transp_scale

Closes #5326.

If the CPT has slices with transparency specified then we now honor that.  For discrete CPTs you may have all or individual slices be transparent, while for continuous CPTs you must either have all or no slices be transparent.
Closes #5326.
@PaulWessel PaulWessel added new feature PR that implements a new feature or capability in GMT new core module feature PR that implements a new core module feature labels Jun 12, 2021
@PaulWessel PaulWessel added this to the 6.3.0 milestone Jun 12, 2021
@PaulWessel PaulWessel self-assigned this Jun 12, 2021
Copy link
Contributor

@anbj anbj left a comment

Choose a reason for hiding this comment

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

In my specific use case, this seems to be working now.

Simply great!

@maxrjones maxrjones added the add-changelog Add PR to the changelog label Jun 12, 2021
@PaulWessel PaulWessel merged commit 1f59539 into master Jun 12, 2021
@PaulWessel PaulWessel deleted the colorbar-transparency branch June 12, 2021 18:40
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 new core module feature PR that implements a new core module feature new feature PR that implements a new feature or capability in GMT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow psscale to place transparent CPTs

3 participants