Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow colorbar -LI as well as -Li #8246

Merged
merged 1 commit into from
Dec 30, 2023
Merged

Allow colorbar -LI as well as -Li #8246

merged 1 commit into from
Dec 30, 2023

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 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
6 checks passed
@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.

None yet

2 participants