TracksStyle#

class movement.napari.layer_styles.TracksStyle(name, visible=True, blending='opaque', colormap='turbo', color_by='track_id', head_length=0, tail_length=30, tail_width=2)[source]#

Bases: LayerStyle

Style properties for a napari Tracks layer.

Methods

as_kwargs()

Return the style properties as a dictionary of kwargs.

set_color_by(property[, cmap])

Color tracks by a column in the properties DataFrame.

as_kwargs()#

Return the style properties as a dictionary of kwargs.

Return type:

dict

set_color_by(property, cmap=None)[source]#

Color tracks by a column in the properties DataFrame.

Parameters:
  • property (str) – The column name in the properties DataFrame to color by.

  • cmap (str, optional) – The name of the colormap to use. If not specified, DEFAULT_COLORMAP is used.

Return type:

None