thor.pl.clusters

thor.pl.clusters(cluster_labels_list, image_size=None, cells_pixels=None, **multiple_kwds)[source]

Color the cells or nuclei with cluster labels.

Parameters:
  • cluster_labels_list (list) – List of cluster labels for each cell or nucleus.

  • image_size (tuple, optional) – Tuple (height, width) representing the size of the image.

  • cells_pixels (list of numpy arrays, optional) – List of numpy arrays representing the pixels of each cell or nucleus.

  • **multiple_kwds (dict, optional) – Additional keyword arguments for the multiple function.

Returns:

If return_fig is False and show is False, the function returns the Axes object. If return_fig is True, the function returns the Figure object. If show is True, the function displays the plot and returns None.

Return type:

matplotlib.axes._subplots.AxesSubplot or matplotlib.figure.Figure, optional