matplotlib
- class trame.widgets.matplotlib.Figure(figure=None, **kwargs)
Bases:
AbstractElement
Create a matplotlib figure viewer element
- Parameters:
figure – Matplotlib figure to show (default: None)
>>> component1 = Figure(figure=fig1) >>> component2 = Figure() >>> component2.update(fig1)
- update(figure=None, **kwargs)
Update the figure to show.
- Parameters:
figure – Matplotlib figure object
- property key
Return the name of the state variable used internally
- static to_data(chart, **kwargs)
Serialize matplotlib figure