4.16. cpforager.diagnostic.plot_folium_traj_cont_colorgrad
- cpforager.diagnostic.plot_folium_traj_cont_colorgrad(fmap, df, color_palettes, q_th)
Add to the folium map the trajectory with a continuous 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 continuous color palettes.
q_th (float) – quantile max threshold for coloring.
- Returns:
the folium map and the feature groups.
- Return type:
(folium.Map, list[folium.FeatureGroupe])