PointsStyle#

class movement.napari.layer_styles.PointsStyle(name, properties, visible=True, blending='translucent', symbol='disc', size=10, border_width=0, face_color=None, face_color_cycle=None, face_colormap='turbo', text=<factory>)[source]#

Bases: LayerStyle

Style properties for a napari Points layer.

Methods

as_kwargs()

Return the style properties as a dictionary of kwargs.

set_color_by(prop[, cmap])

Color markers and text by a column in the properties DataFrame.

set_text_by(prop)

Set the text property for the points layer.

as_kwargs()#

Return the style properties as a dictionary of kwargs.

Return type:

dict

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

Color markers and text by a column in the properties DataFrame.

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

  • cmap (str, optional) – The name of the colormap to use, otherwise use the face_colormap.

Return type:

None

set_text_by(prop)[source]#

Set the text property for the points layer.

Parameters:

prop (str) – The column name in the properties DataFrame to use for text.

Return type:

None