matplotlib
Matplotlib
from dara.components.plotting.matplotlib.matplotlib import Matplotlib
class Matplotlib(StyledComponentInstance)
A Matplotlib Component allows for a matplotlib figure to be added to your app.
This component converts the figure to a base64 encoded string and passes it to the frontend where it is displayed as an image.
Although matplotlib plots can usually be made with pyplot, this is not thread-safe and so should not be used. Instead, use the matplotlib figure object.
Arguments:
figure
: A matplotlib figure
Attributes
- figure: str