Skip to content

Commit 0a69fc3

Browse files
authored
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").
1 parent 4b77743 commit 0a69fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

folium/plugins/heat_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class HeatMap(JSCSSMixin, Layer):
3636
Amount of blur
3737
gradient : dict, default None
3838
Color gradient config. Defaults to
39-
{.4: "blue", .6: "cyan", .7: "lime", .8: "yellow", 1: "red"}
39+
{".4": "blue", ".6": "cyan", ".7": "lime", ".8": "yellow", "1": "red"}
4040
overlay : bool, default True
4141
Adds the layer as an optional overlay (True) or the base layer (False).
4242
control : bool, default True

0 commit comments

Comments
 (0)