Display Matplotlib plots in your Preswald application
The Matplotlib widget allows you to seamlessly display Matplotlib plots in your Preswald application. It renders plots as images within a card container, providing a clean and consistent presentation.
Property | Type | Required | Default | Description |
---|---|---|---|---|
_label | string | No | - | Title text displayed above the plot |
image | string | No | - | Base64-encoded PNG image data of the plot |
className | string | No | ” | Additional CSS classes to apply to the container |
plt.figure()
to create new figures when displaying multiple plots