4.13. cpforager.diagnostic.plot_map_colorgrad
- cpforager.diagnostic.plot_map_colorgrad(ax, df, params, plot_params, var, color_palette, nest_lon, nest_lat, title, q_th, zoom)
Plot map of the trajectory with a color gradient along the column designated by the value of var.
- Parameters:
ax (matplotlib.Axes) – plot axes.
df (pandas.DataFrame) – dataframe with
longitude
,latitude
columns and the column designated by the value of var.params (dict) – parameters dictionary.
plot_params (dict) – plot parameters dictionary.
var (str) – name of the column in df.
color_palette (array([float, float, float])) – continuous color palette.
nest_lon (float) – nest longitude.
nest_lat (float) – nest latitude.
title (str) – plot title.
q_th (float) – quantile max threshold for coloring.
zoom (float) – zooming factor around nest.
Note
The required fields in the parameters dictionary are
colony
.