Skip to content

New function: color legend and color proportion in folium.heatmap #1550

Open

Description

@rmb-rmn

Describe the solution you'd like
without change the default color in current folium heatmap.
we want to see a color legend can be show on map and different color proportion can be showed next to the color legend.

Describe alternatives you've considered
add a color legend can show the correspondence between clor and value
add a color proportion can tell user the percentage of different color, it is very convenient for making statistics.

Additional context
a example link can be seen here:
https://en.wikipedia.org/wiki/Heat_map#/media/File:LakeEffectSnowBuffalo101206.gif

Implementation
yes, I have used it in my example and I will share it with my friends.

Activity

  1. pancerZH commented on Jan 4, 2022

    @pancerZH

    Describe the solution you'd like without change the default color in current folium heatmap. we want to see a color legend can be show on map and different color proportion can be showed next to the color legend.

    Describe alternatives you've considered add a color legend can show the correspondence between clor and value add a color proportion can tell user the percentage of different color, it is very convenient for making statistics.

    Additional context a example link can be seen here: https://en.wikipedia.org/wiki/Heat_map#/media/File:LakeEffectSnowBuffalo101206.gif

    Implementation yes, I have used it in my example and I will share it with my friends.

    Hi, could you share the solution? I met the same issue - show legend with default color setting in heatmap.

  2. added
    enhancement
    on Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions