4.15. cpforager.diagnostic.plot_folium_traj_disc_colorgrad
- cpforager.diagnostic.plot_folium_traj_disc_colorgrad(fmap, df, color_palettes)
Add to the folium map the trajectory with a discrete color gradient along the column designated by the value of var.
- Parameters:
fmap (folium.Map) – the folium map.
df (pandas.DataFrame) – dataframe with
longitude
,latitude
.color_palettes (array([float, float, float])) – dictionary of variables and associated discrete color palettes.
- Returns:
the folium map and the feature groups.
- Return type:
(folium.Map, list[folium.FeatureGroupe])
Warning
Zero values are not considered in discrete color gradient.