From e5116c1adabfa8aad798aa9a3b6ee6aeb4748568 Mon Sep 17 00:00:00 2001 From: Frank <33519926+Conengmo@users.noreply.github.com> Date: Sat, 14 Dec 2024 14:21:16 +0100 Subject: [PATCH] HeatMap: document default gradient --- folium/plugins/heat_map.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/folium/plugins/heat_map.py b/folium/plugins/heat_map.py index afa74d77a..7e01b3149 100644 --- a/folium/plugins/heat_map.py +++ b/folium/plugins/heat_map.py @@ -35,7 +35,8 @@ class HeatMap(JSCSSMixin, Layer): blur : int, default 15 Amount of blur gradient : dict, default None - Color gradient config. e.g. {0.4: 'blue', 0.65: 'lime', 1: 'red'} + Color gradient config. Defaults to + {.4: "blue", .6: "cyan", .7: "lime", .8: "yellow", 1: "red"} overlay : bool, default True Adds the layer as an optional overlay (True) or the base layer (False). control : bool, default True