rockverse.viz.OrthogonalViewer.segmentation_colors#

property OrthogonalViewer.segmentation_colors#

Get or set the color list for the segmentation phases.

  • If a string, it should be the name of a predefined Matplotlib qualitative colormap (e.g., ‘Set1’, ‘Pastel1’, ‘Pastel1_r’).

  • If a list, it should contain colors in any format acceptable by Matplotlib, such as RGB tuples (e.g., (1, 0, 0) for red), hex codes (e.g., ‘#FF0000’ for red), or named colors (‘gold’, ‘forestgreen’, etc.).

The specified colors will be cycled through and assigned to the segmentation phases.

Examples

>>> viewer.segmentation_colors = 'tab10'  # Using a predefined Matplotlib colormap
>>> viewer.segmentation_colors = [(1, 0, 0), '#339966', 'gold']  # Using a list with any valid format