Elements
Pyplot
The Pyplot
class allows you to display a Matplotlib pyplot chart in the chatbot UI. This class takes a pyplot figure.
The difference of between this element and the Plotly
element is that the user is shown a static image of the chart when using Pyplot
.
Attributes
The name of the chart to be displayed in the UI.
Determines how the chart element should be displayed in the UI. Choices are “side” (default), “inline”, or “page”.
Determines the size of the chart. Only works with display=“inline”. Choices are “small”, “medium” (default), or “large”.
The matplotlib.figure.Figure
instance that you want to display.