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

Use an mpl LinearSegmentedColormap #262

Conversation

ricardogsilva
Copy link

This PR modifies the palette handling code, replacing the previous ListedColormap with a LinearSegementedColormap, which does perform linear color interpolation - as opposed to the previous one, which did nearest neighbor interpolation, thus causing some duplicate colors to appear in the final palette.

For comparison, here is the previously generated palette values for the pr_annual_absolute_model_ensemble coverage configuration:

image

and here is the palette, as generated by this PR:

image


@francbartoli francbartoli merged commit 5a22f46 into geobeyond:main Oct 7, 2024
1 check passed
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.

system produces duplicate legend entries
2 participants