Skip to content

Allow colorbar -LI as well as -Li#8246

Merged
PaulWessel merged 1 commit intomasterfrom
categorical-inclusive
Dec 30, 2023
Merged

Allow colorbar -LI as well as -Li#8246
PaulWessel merged 1 commit intomasterfrom
categorical-inclusive

Conversation

@PaulWessel
Copy link
Member

@PaulWessel PaulWessel commented Dec 30, 2023

If a CPT goes from 0 to 100 in steps of 10 then -Li normally labels the first color 0-10 and the last 90-100. With upper case I those two are labelled < 10 and > 90 instead, thus includes values outside the CPT range. In addition, the PR attempts to adjust the default panel size to the longer AAA-BBB annotations. See this form post for the issue. Here is what -Li and -LI look like. Unlike the poster in the forum, I don't think we want <= since the previous is 10-20 so <= 10 seems wrong to me.

bars

Do you think this is a useful directive, @joa-quim ?

If the CPT goes from 0 to 100 in steps of 10 then -Li normally labels the first color 0-10 and the last 90-100. WIth upper case i those two are labelled < 10 and > 90 instead, thus includes values outside the CPT range.
@PaulWessel PaulWessel added the enhancement Improving an existing feature label Dec 30, 2023
@PaulWessel PaulWessel added this to the 6.5.0 milestone Dec 30, 2023
@PaulWessel PaulWessel requested a review from joa-quim December 30, 2023 16:08
@PaulWessel PaulWessel self-assigned this Dec 30, 2023
@joa-quim
Copy link
Member

Yes, looks good, and yes, dshould be < and nor <=

@PaulWessel PaulWessel merged commit b121fba into master Dec 30, 2023
@PaulWessel PaulWessel deleted the categorical-inclusive branch December 30, 2023 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improving an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants