class documentation
class PlotlyWidgetMixin(object): (source)
Known subclasses: fiftyone.core.plots.plotly.PlotlyInteractivePlot
, fiftyone.core.plots.plotly.PlotlyNotebookPlot
, fiftyone.core.plots.views.PlotlyViewPlot
Constructor: PlotlyWidgetMixin(widget)
Mixin for Plotly plots that use widgets to display in Jupyter notebooks.
This class can still be used in non-Jupyter notebook environments, but the resulting figures will not be interactive.
Parameters | |
widget | a plotly:plotly.graph_objects.FigureWidget |
Method | __init__ |
Undocumented |
Method | save |
Saves the plot as an image or HTML. |
Method | _freeze |
Undocumented |
Method | _screenshot |
Undocumented |
Method | _show |
Undocumented |
Method | _update |
Undocumented |
Instance Variable | _handle |
Undocumented |
Instance Variable | _widget |
Undocumented |
Saves the plot as an image or HTML.
Parameters | |
path | the path to write the image or HTML |
width:None | a desired width in pixels when saving as an image. By default, the layout width is used |
height:None | a desired height in pixels when saving as an image. By default, the layout height is used |
scale:None | a scale factor to apply to the layout dimensions. By default, this is 1.0 |
**kwargs | keyword arguments for
plotly:plotly.graph_objects.Figure.to_image or
plotly:plotly.graph_objects.Figure.write_html |