showΒΆ

Figure.show(autoscale=True, maintain_aspect=None, toolbar=True, sidecar=False, sidecar_kwargs=None, add_widgets=None)[source]ΒΆ

Begins the rendering event loop and shows the plot in the desired output context (jupyter, qt or glfw).

Parameters:
  • autoscale (bool, default True) – autoscale the Scene

  • maintain_aspect (bool, default True) – maintain aspect ratio

  • toolbar (bool, default True) – show toolbar

  • sidecar (bool, default True) – display plot in a jupyterlab-sidecar, only for jupyter output context

  • sidecar_kwargs (dict, default None) – kwargs for sidecar instance to display plot i.e. title, layout

  • add_widgets (list of widgets) – a list of ipywidgets or QWidget that are vertically stacked below the plot

Returns:

In jupyter, it will display the plot in the output cell or sidecar

In Qt, it will display the Plot, toolbar, etc. as stacked widget, use Plot.widget to access it.

Return type:

OutputContext