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

Feature request: Expand colormap options #109

Open
norlandrhagen opened this issue Dec 26, 2024 · 2 comments
Open

Feature request: Expand colormap options #109

norlandrhagen opened this issue Dec 26, 2024 · 2 comments

Comments

@norlandrhagen
Copy link

Super neat project!

I was wondering if we could expand what kinds of colormaps we can pass into STYLES (stylename/palettename).

On a quick prototype, passing in a cmocean colormap from palettable works with in get_map.py.

import palettable
colormap = palettable.cmocean.sequential.Ice_20.get_mpl_colormap()

shaded = tf.shade(
    mesh,
    cmap=colormap #self.palettename
    how="linear",
    span=span,
)
@mpiannucci
Copy link
Collaborator

You can pass any default matplotlib colormap name into raster/{colormap}! We are thinking of how to do custom but for now this is a bit of options if it wasn't clear

@mpiannucci
Copy link
Collaborator

You can also deploy this custom with the render function overridden to further customize

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

No branches or pull requests

2 participants