slitflow.fig.trajectory module

class All(info_path=None)[source]

Bases: Figure

Show all trajectories of each image.

Parameters:
  • reqs[0] (Table) – X,Y-coordinate of trajectories. Required param; length_unit.

  • param["trj_depth"] (int) – Column depth of trajectory number.

  • param["centered"] (bool, optional) – If True, the centroid position from all trajectory positions is set as (0, 0).

Returns:

Trajectory Figure object

Return type:

Figure

set_info(param={})[source]

Copy and modify info from reqs[0] and add params.

static process(reqs, param)[source]

Show all trajectories of each image.

Parameters:
  • reqs[0] (pandas.DataFrame) – X,Y-coordinate of trajectories.

  • param["calc_cols"] (list of str) – Column names for X and Y axes.

  • param["index_cols"] (list of str) – Column names of index. This column is used for pandas.DataFrame.groupby().

  • param["centered"] (bool, optional) – If True, the centroid position from all trajectory positions is set as (0, 0).

Returns:

matplotlib Figure containing trajectory plot

Return type:

matplotlib.figure.Figure

class StyleAll(info_path=None)[source]

Bases: Basic

Simplified styling class for trajectory Figure.

Parameters:
  • reqs[0] (Figure) – Trajectory Figure.

  • param["half_width"] (float, optional) – Half width of rendering axes in length_unit. Used if trajectory is centered.

Returns:

Styled Figure object

Return type:

Figure

set_info(param={})[source]

Set default param then run super().set_info.