4.12. cpforager.diagnostic.plot_map_wtrips
- cpforager.diagnostic.plot_map_wtrips(ax, df, params, plot_params, color_palette, n_trips, nest_lon, nest_lat, zoom, trip_length=None, trip_duration=None)
Plot map of the trajectory colored by trips.
- Parameters:
ax (matplotlib.Axes) – plot axes.
df (pandas.DataFrame) – dataframe with
longitude
,latitude
andtrip
columns.params (dict) – parameters dictionary.
plot_params (dict) – plot parameters dictionary.
color_palette (array([float, float, float])) – discrete color palette for the trip coloring along trajectory.
n_trips (int) – number of trips.
nest_lon (float) – nest longitude.
nest_lat (float) – nest latitude.
zoom (float) – zooming factor around nest.
trip_length (array(str)) – trip lengths for the legend.
trip_duration (array(str)) – trip durations for the legend.
Note
The required fields in the parameters dictionary are
colony
.