Skip to main content
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

str
The name of the chart to be displayed in the UI.
ElementDisplay
Determines how the chart element should be displayed in the UI. Choices are “side”, “inline”, or “page”.
ElementSize
Determines the size of the chart. Only works with display=“inline”. Choices are “small”, “medium” (default), or “large”.
str
The matplotlib.figure.Figure instance that you want to display.

Example