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

User-defined color bars #975

Closed
forman opened this issue May 6, 2024 · 0 comments · Fixed by #976
Closed

User-defined color bars #975

forman opened this issue May 6, 2024 · 0 comments · Fixed by #976
Assignees
Labels
enhancement New feature or request

Comments

@forman
Copy link
Member

forman commented May 6, 2024

Is your feature request related to a problem? Please describe.

This is the backend implementation for xcube-dev/xcube-viewer#334.

Describe the solution you'd like

Custom color bars are still passed using query parameter cmap, but in the case of custom color bars it is a JSON object with the following format: {"name": <name>, "colors": <colors>}, where <name> is a unique name and <colors> is a list pairs [[<v1>,<c1>], [<v2>,<c2>], [<v3>,<c3>], ...] that map a sample value to a "#RRGGBBAA" color.

@forman forman added the enhancement New feature or request label May 6, 2024
@forman forman self-assigned this May 6, 2024
@forman forman mentioned this issue May 6, 2024
7 tasks
@forman forman mentioned this issue May 14, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant