From 0a69fc329ad9f71c53658e743bb3f5d363ed9ef0 Mon Sep 17 00:00:00 2001 From: krishna0125 <40312441+krishna0125@users.noreply.github.com> Date: Thu, 20 Feb 2025 17:20:13 +0530 Subject: [PATCH] Doc String - Gradient Argument -- Update heat_map.py In the docstring, the gradient dictionary keys are mentioned as integers, but I believe the backend code expects them to be strings. So, I changed the docstring to reflect this, from integer values (e.g., .8) to string values (e.g., ".8"). --- folium/plugins/heat_map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folium/plugins/heat_map.py b/folium/plugins/heat_map.py index 7e01b31490..8c4c17bb64 100644 --- a/folium/plugins/heat_map.py +++ b/folium/plugins/heat_map.py @@ -36,7 +36,7 @@ class HeatMap(JSCSSMixin, Layer): Amount of blur gradient : dict, default None Color gradient config. Defaults to - {.4: "blue", .6: "cyan", .7: "lime", .8: "yellow", 1: "red"} + {".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