organoid_tracker.coordinate_system.sphere_representer module

class organoid_tracker.coordinate_system.sphere_representer.SphereRepresentation(beacons: BeaconCollection, beacon_index: int, resolution: ImageResolution)

Bases: object

add_orientation_track(track: Iterable[Position], *, highlight_last: bool = True)

Adds a list of positions to be displayed further away from the sphere.

add_point(position: Position, *, color: Tuple[float, float, float] | Tuple[float, float, float, float] | str | float = 'black')

Adds a single point to this sphere representation.

add_track(track: Iterable[Position], *, colors: Iterable[Tuple[float, float, float] | Tuple[float, float, float, float] | str | float] | None = None, color: Tuple[float, float, float] | Tuple[float, float, float, float] | str | float | None = None, highlight_first: bool = True, highlight_last: bool = False)

Adds a list of positions to be displayed on the sphere. Use either color or colors to color the track.

draw_2d(ax: Axes)
draw_3d(ax: Axes3D, sphere_origin_px: Vector3)
organoid_tracker.coordinate_system.sphere_representer.setup_figure_2d(ax: Axes, sphere_representation: SphereRepresentation)
organoid_tracker.coordinate_system.sphere_representer.setup_figure_3d(figure: Figure, sphere_representation: SphereRepresentation)