Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add documentation
  • Loading branch information
CoriPegliasco committed Feb 4, 2021
commit 7be041e3cb8e15e48ef0e174e2a7ae6513f0dba1
20 changes: 11 additions & 9 deletions src/py_eddy_tracker/observations/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,23 +446,25 @@ def scatter(
self,
ax,
name="time",
s=25,
factor=1,
ref=None,
edgecolor_cycle=None,
cmap="Spectral_r",
**kwargs,
):
"""
This function will scatter the path of each trajectory

:param matplotlib.axes.Axes ax: ax to draw
:param float,int ref: if defined, all coordinates will be wrapped with ref like west boundary
:param dict kwargs: keyword arguments for Axes.plot
:return: a list of matplotlib mappables
This function will scatter the path of each network, with the merging and splitting events

:param matplotlib.axes.Axes ax: matplotlib axe used to draw
:param str,array,None name:
variable used to fill the contour, if None all elements have the same color
:param float,None ref: if define use like west bound
:param float factor: multiply value by
:param list edgecolor_cycle: list of colors
:param dict kwargs: look at :py:meth:`matplotlib.axes.Axes.scatter`
:return: a dict of scattered mappables
"""
mappables = dict()
nb_colors = len(edgecolor_cycle) if edgecolor_cycle != None else None
nb_colors = len(edgecolor_cycle) if edgecolor_cycle else None
x = self.longitude
if ref is not None:
x = (x - ref) % 360 + ref
Expand Down