class documentation

Interactive wrapper for a matplotlib collection.

This class enables collection points to be lasso-ed and click selected.

The currently selected points are given a visually distinctive style, and you can modify your selection by either clicking on individual points or drawing a lasso around new points.

When the shift key is pressed, new selections are added to the selected set, or subtracted if the new selection is a subset of the current selection.

Parameters
collectiona matplotlib.collections.Collection to select points from
idsan array-like of IDs corresponding to the points in collection
buttonsa list of (label, icon_image, callback) tuples defining buttons to add to the plot
alpha_othera transparency value for unselected points
expand_selectedexpand the size of selected points by this multiple
click_tolerancea click distance tolerance in [0, 1] when clicking individual points
**kwargskeyword arguments for the fiftyone.core.plots.base.InteractivePlot constructor
Method __init__ Undocumented
Instance Variable alpha_other Undocumented
Instance Variable ax Undocumented
Instance Variable click_tolerance Undocumented
Instance Variable collection Undocumented
Instance Variable expand_selected Undocumented
Method _close_hud Undocumented
Method _connect Undocumented
Method _disconnect Undocumented
Method _draw Undocumented
Method _freeze Undocumented
Method _init_canvas Undocumented
Method _init_hud Undocumented
Method _on_enter Undocumented
Method _on_exit Undocumented
Method _on_keypress Undocumented
Method _on_keyrelease Undocumented
Method _on_select Undocumented
Method _prep_collection Undocumented
Method _register_disconnect_callback Undocumented
Method _register_sync_callback Undocumented
Method _reinit_hud Undocumented
Method _reopen Undocumented
Method _select_ids Undocumented
Method _select_inds Undocumented
Method _update_hud Undocumented
Method _update_plot Undocumented
Instance Variable _buttons Undocumented
Instance Variable _canvas Undocumented
Instance Variable _disconnect_button_def Undocumented
Instance Variable _fc Undocumented
Instance Variable _figure_events Undocumented
Instance Variable _ids Undocumented
Instance Variable _ids_to_inds Undocumented
Instance Variable _inds Undocumented
Instance Variable _keypress_events Undocumented
Instance Variable _lasso Undocumented
Instance Variable _ms Undocumented
Instance Variable _num_pts Undocumented
Instance Variable _shift Undocumented
Instance Variable _sync_button_def Undocumented
Instance Variable _title Undocumented
Instance Variable _user_button_defs Undocumented
Instance Variable _xy Undocumented
Property _selected_ids Undocumented

Inherited from InteractiveMatplotlibPlot:

Method save Saves the plot as an image.
Method show Shows this plot.
Property supports_session_updates Whether this plot supports automatic updates in response to session changes.
Method _show Undocumented
Instance Variable _figure Undocumented
Instance Variable _in_notebook_context Undocumented

Inherited from InteractivePlot (via InteractiveMatplotlibPlot):

Static Method recommend_link_type Recommends a link type for the given info.
Method register_disconnect_callback Registers a callback that can disconnect this plot from a SessionPlot connected to it.
Method register_selection_callback Registers a selection callback for this plot.
Method register_sync_callback Registers a callback that can sync this plot with a SessionPlot connected to it.
Method reset Resets the plot to its default state.
Method select_ids Selects the points with the given IDs in this plot.
Method selection_mode.setter Undocumented
Instance Variable label_fields Undocumented
Property init_view A fiftyone.core.collections.SampleCollection defining the initial view from which to derive selection views when points are selected in the plot.
Property selected_ids A list of IDs of the currently selected points.
Property selection_mode The current selection mode of the plot.
Method _register_selection_callback Undocumented
Instance Variable _disconnect_callback Undocumented
Instance Variable _init_fcn Undocumented
Instance Variable _init_fcn_view Undocumented
Instance Variable _init_view Undocumented
Instance Variable _selection_callback Undocumented
Instance Variable _selection_mode Undocumented
Instance Variable _sync_callback Undocumented

Inherited from ResponsivePlot (via InteractiveMatplotlibPlot, InteractivePlot):

Method connect Connects this plot, if necessary.
Method disconnect Disconnects the plot, if necessary.
Method freeze Freezes the plot, replacing it with a static image.
Property is_connected Whether this plot is currently connected.
Property is_disconnected Whether this plot is currently disconnected.
Property is_frozen Whether this plot is currently frozen.
Instance Variable _connected Undocumented
Instance Variable _disconnected Undocumented
Instance Variable _frozen Undocumented
Instance Variable _link_type Undocumented

Inherited from Plot (via InteractiveMatplotlibPlot, InteractivePlot, ResponsivePlot):

Method _repr_pretty_ Undocumented
def __init__(self, collection, ids=None, buttons=None, alpha_other=0.25, expand_selected=3.0, click_tolerance=0.02, **kwargs): (source)
alpha_other: 0.25 = (source)

Undocumented

Undocumented

click_tolerance: 0.02 = (source)

Undocumented

collection = (source)

Undocumented

expand_selected: 3.0 = (source)

Undocumented

def _close_hud(self): (source)

Undocumented

def _draw(self): (source)

Undocumented

def _init_canvas(self, figure): (source)

Undocumented

def _init_hud(self): (source)

Undocumented

def _on_enter(self, event): (source)

Undocumented

def _on_exit(self, event): (source)

Undocumented

def _on_keypress(self, event): (source)

Undocumented

def _on_keyrelease(self, event): (source)

Undocumented

def _on_select(self, vertices): (source)

Undocumented

def _prep_collection(self): (source)

Undocumented

def _register_disconnect_callback(self, callback): (source)
def _register_sync_callback(self, callback): (source)
def _reinit_hud(self): (source)

Undocumented

def _select_ids(self, ids, view=None): (source)
def _select_inds(self, inds): (source)

Undocumented

def _update_hud(self, visible): (source)

Undocumented

def _update_plot(self): (source)

Undocumented

_buttons: list = (source)

Undocumented

Undocumented

_disconnect_button_def = (source)

Undocumented

Undocumented

_figure_events: list = (source)

Undocumented

Undocumented

_ids_to_inds = (source)

Undocumented

Undocumented

_keypress_events: list = (source)

Undocumented

Undocumented

Undocumented

_num_pts = (source)

Undocumented

Undocumented

_sync_button_def = (source)

Undocumented

Undocumented

_user_button_defs = (source)

Undocumented

Undocumented