convert_to_projection#

convert_to_projection(series_key: str, locations_tar: TarFile, frame: int, regions: list[str], box: tuple[int, int, int], ds: float, dt: float, scale: int, colors: dict[str, str]) Figure[source]#

Convert data to projection figure.

Parameters:
  • series_key – Simulation series key.

  • locations_tar – Archive of location data.

  • frame – Frame number.

  • regions – List of regions.

  • box – Size of bounding box.

  • ds – Spatial scaling in um/voxel.

  • dt – Temporal scaling in hours/tick.

  • scale – Size of scale bar (in um).

  • colors – Map of region to colors.

Returns:

Projection figure.

add_frame_timestamp(ax: Axes, length: int, width: int, dt: float, frame: int, color: str) None[source]#

Add a frame timestamp to figure axes.

Parameters:
  • ax – Axes object.

  • length – Length of bounding box.

  • width – Width of bounding box.

  • dt – Temporal scaling in hours/tick.

  • frame – Frame number.

  • color – Timestamp color.

add_frame_scalebar(ax: Axes, length: int, width: int, ds: float, scale: int, color: str) None[source]#

Add a frame scalebar to figure axes.

Parameters:
  • ax – Axes object.

  • length – Length of bounding box.

  • width – Width of bounding box.

  • ds – Spatial scaling in um/voxel.

  • scale – Size of scale bar (in um).

  • color – Scalebar color.