class InteractiveCollection(InteractiveMatplotlibPlot): (source)
Constructor: InteractiveCollection(collection, ids, buttons, alpha_other, ...)
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 | |
collection | a matplotlib.collections.Collection to select points from |
ids | an array-like of IDs corresponding to the points in collection |
buttons | a list of (label, icon_image, callback) tuples defining buttons to add to the plot |
alpha | a transparency value for unselected points |
expand | expand the size of selected points by this multiple |
click | a click distance tolerance in [0, 1] when clicking individual points |
**kwargs | keyword arguments for the
fiftyone.core.plots.base.InteractivePlot constructor |
Method | __init__ |
Undocumented |
Instance Variable | alpha |
Undocumented |
Instance Variable | ax |
Undocumented |
Instance Variable | click |
Undocumented |
Instance Variable | collection |
Undocumented |
Instance Variable | expand |
Undocumented |
Method | _close |
Undocumented |
Method | _connect |
Undocumented |
Method | _disconnect |
Undocumented |
Method | _draw |
Undocumented |
Method | _freeze |
Undocumented |
Method | _init |
Undocumented |
Method | _init |
Undocumented |
Method | _on |
Undocumented |
Method | _on |
Undocumented |
Method | _on |
Undocumented |
Method | _on |
Undocumented |
Method | _on |
Undocumented |
Method | _prep |
Undocumented |
Method | _register |
Undocumented |
Method | _register |
Undocumented |
Method | _reinit |
Undocumented |
Method | _reopen |
Undocumented |
Method | _select |
Undocumented |
Method | _select |
Undocumented |
Method | _update |
Undocumented |
Method | _update |
Undocumented |
Instance Variable | _buttons |
Undocumented |
Instance Variable | _canvas |
Undocumented |
Instance Variable | _disconnect |
Undocumented |
Instance Variable | _fc |
Undocumented |
Instance Variable | _figure |
Undocumented |
Instance Variable | _ids |
Undocumented |
Instance Variable | _ids |
Undocumented |
Instance Variable | _inds |
Undocumented |
Instance Variable | _keypress |
Undocumented |
Instance Variable | _lasso |
Undocumented |
Instance Variable | _ms |
Undocumented |
Instance Variable | _num |
Undocumented |
Instance Variable | _shift |
Undocumented |
Instance Variable | _sync |
Undocumented |
Instance Variable | _title |
Undocumented |
Instance Variable | _user |
Undocumented |
Instance Variable | _xy |
Undocumented |
Property | _selected |
Undocumented |
Inherited from InteractiveMatplotlibPlot
:
Method | save |
Saves the plot as an image. |
Method | show |
Shows this plot. |
Property | supports |
Whether this plot supports automatic updates in response to session changes. |
Method | _show |
Undocumented |
Instance Variable | _figure |
Undocumented |
Instance Variable | _in |
Undocumented |
Inherited from InteractivePlot
(via InteractiveMatplotlibPlot
):
Static Method | recommend |
Recommends a link type for the given info. |
Method | register |
Registers a callback that can disconnect this plot from a SessionPlot connected to it. |
Method | register |
Registers a selection callback for this plot. |
Method | register |
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 |
Selects the points with the given IDs in this plot. |
Method | selection |
Undocumented |
Instance Variable | label |
Undocumented |
Property | init |
A fiftyone.core.collections.SampleCollection defining the initial view from which to derive selection views when points are selected in the plot. |
Property | selected |
A list of IDs of the currently selected points. |
Property | selection |
The current selection mode of the plot. |
Method | _register |
Undocumented |
Instance Variable | _disconnect |
Undocumented |
Instance Variable | _init |
Undocumented |
Instance Variable | _init |
Undocumented |
Instance Variable | _init |
Undocumented |
Instance Variable | _selection |
Undocumented |
Instance Variable | _selection |
Undocumented |
Instance Variable | _sync |
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 |
Whether this plot is currently connected. |
Property | is |
Whether this plot is currently disconnected. |
Property | is |
Whether this plot is currently frozen. |
Instance Variable | _connected |
Undocumented |
Instance Variable | _disconnected |
Undocumented |
Instance Variable | _frozen |
Undocumented |
Instance Variable | _link |
Undocumented |
Inherited from Plot
(via InteractiveMatplotlibPlot
, InteractivePlot
, ResponsivePlot
):
Method | _repr |
Undocumented |