physicool.plotting

Module Contents

Classes

SweeperPlot

Functions

plot_trajectories_2d(trajectories[, ax])

Plots the cell trajectories in 2D as a line and a point at the last coordinate.

plot_trajectories_3d(trajectories[, ax])

Plots the cell trajectories in 3D as a line and a point at the last coordinate.

class physicool.plotting.SweeperPlot[source]
fig: matplotlib.pyplot.Figure
ax: matplotlib.pyplot.Axes
__post_init__()[source]
set_up_plotter(n_levels, param_labels)[source]

Defines the initial bounds and labels for the plotter.

Parameters:
  • n_levels (int) –

  • param_labels (List[str]) –

draw()[source]

Updates the figure.

add_bounds_to_ax(x, y, z)[source]

Draws the bounds for a level’s parameter space.

Parameters:
  • x (numpy.ndarray) –

  • y (numpy.ndarray) –

  • z (int) –

Return type:

None

static get_colormap(level_values)[source]

Convert the passed values to colormap.

Parameters:

level_values (numpy.ndarray) –

Return type:

numpy.ndarray

plot_level_results(x, y, z, results)[source]
Parameters:
  • x (numpy.ndarray) –

  • y (numpy.ndarray) –

  • z (int) –

  • results (numpy.ndarray) –

Return type:

None

physicool.plotting.plot_trajectories_2d(trajectories, ax=None)[source]

Plots the cell trajectories in 2D as a line and a point at the last coordinate.

Parameters:
  • trajectories (pandas.DataFrame) – A DataFrame with the cells’ x and y coordinates.

  • ax (Optional[matplotlib.pyplot.Axes]) – The axes object where the trajectories will be plotted (optional).

physicool.plotting.plot_trajectories_3d(trajectories, ax=None)[source]

Plots the cell trajectories in 3D as a line and a point at the last coordinate.

Parameters:
  • trajectories (pandas.DataFrame) – A DataFrame with the cells’ x, y and z coordinates.

  • ax (Optional[matplotlib.pyplot.Axes]) – The axes object where the trajectories will be plotted (optional).