INNER CODE UNIT · Python
add_markers
moshi4/pyMSAviz · src/pymsaviz/msaviz.py:314
def add_markers(
self,
positions: list[tuple[int, int] | int],
marker: str = "v",
color: str = "black",
size: float = 6,
) -> None:
"""Add markers on specified positions
Parameters
----------
positions : list[tuple[int, int] | int]
Marker positions. int and tuple range mixture positions can be specified.
(e.g. If `[1, 5, (10, 13), 18]` is set, markers are plotted on
`1, 5, 10, 11, 12, 13, 18` positions)
marker : str, optional
Marker type of matplotlib.
See <https://matplotlib.org/stable/api/markers_api.html> for details.