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

StepColormap: inclusive lower bound #141

Conversation

Conengmo
Copy link
Member

@Conengmo Conengmo commented Oct 3, 2023

I wrote some simple tests to verify #134.

Found that the LinearColormap already works as expected.

Stepcolormap is not exactly broken at the moment, but weird in that the lower value of each bound is exclusive. Confusing, because the first value in the index is inclusive. And it's probably more conventional to have the lower value be inclusive and the upper value be exclusive.

I've made a new PR over #134 because these tests are important, we don't have to change LinearColormap, the change to StepColormap is smaller and updated the docstring.

@Conengmo
Copy link
Member Author

Conengmo commented Oct 3, 2023

@MxMartin I know it's been a while, but are you available to comment whether this fixes your issue?

@MxMartin
Copy link

MxMartin commented Oct 3, 2023

@Conengmo Yes, for 'StepColormap' it does as far as my tests go

@Conengmo
Copy link
Member Author

Conengmo commented Oct 4, 2023

Great, let's get this out then. Thanks for bringing this issue up and looking into it!

@Conengmo Conengmo merged commit 95911d9 into python-visualization:main Oct 4, 2023
11 checks passed
@Conengmo Conengmo deleted the stepcolormap-inclusive-lower-bound branch October 4, 2023 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants