class documentation

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
widgeta 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_layout Undocumented
Instance Variable _handle Undocumented
Instance Variable _widget Undocumented
def save(self, path, width=None, height=None, scale=None, **kwargs): (source)

Saves the plot as an image or HTML.

Parameters
paththe path to write the image or HTML
width:Nonea desired width in pixels when saving as an image. By default, the layout width is used
height:Nonea desired height in pixels when saving as an image. By default, the layout height is used
scale:Nonea scale factor to apply to the layout dimensions. By default, this is 1.0
**kwargskeyword arguments for plotly:plotly.graph_objects.Figure.to_image or plotly:plotly.graph_objects.Figure.write_html
def _freeze(self): (source)

Undocumented

def _screenshot(self): (source)

Undocumented

def _show(self, **kwargs): (source)

Undocumented

def _update_layout(self, **kwargs): (source)

Undocumented

Undocumented