Skip to content

Linear Color Map #125

Answered by giswqs
shi093 asked this question in Q&A
Discussion options

You must be logged in to vote

You can the leafmap colormap moule get_palette(palette, n_colors) function to generate a linear color palette and then assign colors to your data. Similar to what I did in this web app https://streamlit.gishub.org. I will try to add a function to make it easier to use when I have time.
Code: https://github.com/giswqs/streamlit-geospatial/blob/master/apps/housing.py#L336

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by giswqs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants