Skip to content

Commit 7be041e

Browse files
committed
add documentation
1 parent 58fdba7 commit 7be041e

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/py_eddy_tracker/observations/network.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -446,23 +446,25 @@ def scatter(
446446
self,
447447
ax,
448448
name="time",
449-
s=25,
450449
factor=1,
451450
ref=None,
452451
edgecolor_cycle=None,
453-
cmap="Spectral_r",
454452
**kwargs,
455453
):
456454
"""
457-
This function will scatter the path of each trajectory
458-
459-
:param matplotlib.axes.Axes ax: ax to draw
460-
:param float,int ref: if defined, all coordinates will be wrapped with ref like west boundary
461-
:param dict kwargs: keyword arguments for Axes.plot
462-
:return: a list of matplotlib mappables
455+
This function will scatter the path of each network, with the merging and splitting events
456+
457+
:param matplotlib.axes.Axes ax: matplotlib axe used to draw
458+
:param str,array,None name:
459+
variable used to fill the contour, if None all elements have the same color
460+
:param float,None ref: if define use like west bound
461+
:param float factor: multiply value by
462+
:param list edgecolor_cycle: list of colors
463+
:param dict kwargs: look at :py:meth:`matplotlib.axes.Axes.scatter`
464+
:return: a dict of scattered mappables
463465
"""
464466
mappables = dict()
465-
nb_colors = len(edgecolor_cycle) if edgecolor_cycle != None else None
467+
nb_colors = len(edgecolor_cycle) if edgecolor_cycle else None
466468
x = self.longitude
467469
if ref is not None:
468470
x = (x - ref) % 360 + ref

0 commit comments

Comments
 (0)