organoid_tracker.linking_analysis.lineage_drawing module

class organoid_tracker.linking_analysis.lineage_drawing.LineageDrawing(links: Union[Links, List[LinkingTrack]])

Bases: object

draw_lineages_colored(axes: ~matplotlib.axes._axes.Axes, *, color_getter: ~typing.Callable[[int, ~organoid_tracker.core.links.LinkingTrack], ~typing.Union[~typing.Tuple[float, float, float], ~typing.Tuple[float, float, float, float], str, float]] = <function _black>, resolution: ~typing.Optional[~organoid_tracker.core.resolution.ImageResolution] = None, timings: ~typing.Optional[~organoid_tracker.core.resolution.ImageTimings] = None, location_map: ~organoid_tracker.gui.location_map.LocationMap = <organoid_tracker.gui.location_map.LocationMap object>, label_getter: ~typing.Callable[[~organoid_tracker.core.links.LinkingTrack], ~typing.Optional[str]] = <function _no_labels>, lineage_filter: ~typing.Callable[[~organoid_tracker.core.links.LinkingTrack], bool] = <function _no_filter>, line_width: float = 1.5, x_offset_start: float = 0, set_ylabel: bool = True)

Draws lineage trees that are color coded. You can for example color cells by z position, by track length, etc. Returns the width of the lineage tree in Matplotlib pixels.

You can use the resolution parameter, the timings parameter, or neither of them, but not both. If you use neither, we will plot time points.

starting_tracks: List[LinkingTrack]