Skip to main content
Version: 25.2

snorkelflow.client.lfs.add_scatterplot_lf

snorkelflow.client.lfs.add_scatterplot_lf(node, ax, label_str, name=None, split='dev', apply_timeout_secs=None)

Create a bounding rectangle LF from the current view of a scatterplot.

The name of the x axis and y axis will be used as the field names.

Parameters

NameTypeDefaultInfo
nodeintUID of the node.
axaxisA matplotlib.pyplot.axis object containing information about the plot to create a bounding box from (usually acquired through plot_scatterplot()).
label_strstrLabel assigned if the labeling function votes.
nameOptional[str]NoneName of the labeling function.
splitstr'dev'Split to be loaded. Default to "dev".
apply_timeout_secsOptional[float]NoneOptional param to specify timeout for LF apply.

Raises

ValueError – If label_str is not in the set of valid labels for task

Return type

Dict[str, Any]