class documentation
class ViewPlot(ResponsivePlot): (source)
Known subclasses: fiftyone.core.plots.views.PlotlyViewPlot
Constructor: ViewPlot(init_view)
Base class for plots that can be automatically populated given a
fiftyone.core.collections.SampleCollection
instance.
The state of ViewPlot
instances can also be updated by external
parties by calling its update_view
method.
Parameters | |
init | an initial
fiftyone.core.collections.SampleCollection to load |
Method | __init__ |
Undocumented |
Method | reset |
Resets the plot to its default state. |
Method | update |
Updates the plot based on the provided view. |
Instance Variable | init |
Undocumented |
Property | supports |
Whether this plot supports automatic updates in response to session changes. |
Method | _get |
Gets the fiftyone.core.aggregations.Aggregation instances that can compute the necessary data to serve this plot. |
Method | _update |
Undocumented |
Inherited from ResponsivePlot
:
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. |
Method | show |
Shows the plot. |
Property | is |
Whether this plot is currently connected. |
Property | is |
Whether this plot is currently disconnected. |
Property | is |
Whether this plot is currently frozen. |
Property | link |
The link type between this plot and a connected session. |
Method | _connect |
Undocumented |
Method | _disconnect |
Undocumented |
Method | _freeze |
Undocumented |
Method | _reopen |
Undocumented |
Method | _show |
Undocumented |
Instance Variable | _connected |
Undocumented |
Instance Variable | _disconnected |
Undocumented |
Instance Variable | _frozen |
Undocumented |
Instance Variable | _link |
Undocumented |
Inherited from Plot
(via ResponsivePlot
):
Method | save |
Saves the plot. |
Method | _repr |
Undocumented |
Updates the plot based on the provided view.
Parameters | |
view | a fiftyone.core.collections.SampleCollection |
aggNone | a list of pre-computed aggregation results |
overridden in
fiftyone.core.plots.views.CategoricalHistogram
, fiftyone.core.plots.views.NumericalHistogram
, fiftyone.core.plots.views.ViewGrid
Gets the fiftyone.core.aggregations.Aggregation
instances
that can compute the necessary data to serve this plot.
Subclasses are not required to implement this method if they do not leverage aggregations.
Returns | |
a list fiftyone.core.aggregations.Aggregation instances,
or None |