class documentation

Wrapper class that turns a Plotly figure containing one or more scatter-type traces into an fiftyone.core.plots.base.InteractivePlot.

This wrapper responds to selection and deselection events (if available) triggered on the figure's traces via Plotly's lasso and box selector tools.

Traces whose customdata attribute contain lists/arrays are assumed to contain the IDs of the points in the trace. Traces with no customdata are allowed, but will not have any selection events.

Parameters
figurea plotly:plotly.graph_objects.Figure
**kwargskeyword arguments for the fiftyone.core.plots.base.InteractivePlot constructor
Method __init__ Undocumented
Property supports_session_updates Whether this plot supports automatic updates in response to session changes.
Method _connect Undocumented
Method _disconnect Undocumented
Method _init_callback_flags Undocumented
Method _init_traces Undocumented
Method _make_widget Undocumented
Method _on_select Undocumented
Method _ready_for_callback Undocumented
Method _reopen Undocumented
Method _select_ids Undocumented
Instance Variable _callback_flags Undocumented
Instance Variable _figure Undocumented
Instance Variable _ids_to_inds Undocumented
Instance Variable _ids_to_traces Undocumented
Instance Variable _trace_ids Undocumented
Instance Variable _traces Undocumented
Instance Variable _widget Undocumented
Property _selected_ids Undocumented

Inherited from PlotlyInteractivePlot:

Method show Shows the plot.
Method update_layout Updates the layout of the plot.

Inherited from PlotlyWidgetMixin (via PlotlyInteractivePlot):

Method save Saves the plot as an image or HTML.
Method _freeze Undocumented
Method _screenshot Undocumented
Method _show Undocumented
Method _update_layout Undocumented
Instance Variable _handle Undocumented

Inherited from InteractivePlot (via PlotlyInteractivePlot, PlotlyWidgetMixin):

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_disconnect_callback Undocumented
Method _register_selection_callback Undocumented
Method _register_sync_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 PlotlyInteractivePlot, PlotlyWidgetMixin, 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 PlotlyInteractivePlot, PlotlyWidgetMixin, InteractivePlot, ResponsivePlot):

Method _repr_pretty_ Undocumented
def __init__(self, figure, **kwargs): (source)
@property
supports_session_updates = (source)

Whether this plot supports automatic updates in response to session changes.

def _init_callback_flags(self): (source)

Undocumented

def _init_traces(self): (source)

Undocumented

def _make_widget(self): (source)

Undocumented

def _on_select(self, trace, selector=None): (source)

Undocumented

def _ready_for_callback(self, trace): (source)

Undocumented

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

Undocumented

Undocumented

_ids_to_inds: dict = (source)

Undocumented

_ids_to_traces: dict = (source)

Undocumented

_trace_ids: dict = (source)

Undocumented

Undocumented