organoid_tracker.util.mpl_helper module

organoid_tracker.util.mpl_helper.line_infinite(ax: Axes, x1: float, y1: float, x2: float, y2: float, color: Union[Tuple[float, float, float], Tuple[float, float, float, float], str, float] = 'red', linewidth: int = 2, alpha: float = 1)

Draws a 2D line that extends a long while across the current view.

organoid_tracker.util.mpl_helper.plot_multicolor(ax: Axes, x: Union[List[float], ndarray], y: Union[List[float], ndarray], *, colors: ndarray, linewidth: float = 2) LineCollection

Plots a multicolored line. The array named c must contain numbers between 0 and 1.

organoid_tracker.util.mpl_helper.restore_axes_limits(axes: Axes, limits: Optional[Tuple[Tuple[float, float], Tuple[float, float]]])

Restores the current limits of the axis. Does nothing if limits is None.

organoid_tracker.util.mpl_helper.store_axes_limits(axes: Axes) Optional[Tuple[Tuple[float, float], Tuple[float, float]]]

Returns the current limits of the axes. Returns None if they have their default value.