trame-matplotlib extend trame widgets with a component that is capable of rendering Matplotlib plots. This library allow you to create rich visualization by leveraging Matplotlib within trame.
trame-matplotlib can be installed with pip:
pip install --upgrade trame-matplotlib
The Trame Tutorial is the place to go to learn how to use the library and start building your own application.
The API Reference documentation provides API-level documentation.
trame-matplotlib is made available under the BSD-3 License. For more details, see LICENSE This package is under the BSD-3 License as it is compatible with matplotlib and mpld3 which are used underneath that trame widget.
Trame | Discussions | Issues | RoadMap | Contact Us
Share your experience with a testimonial or with a brand approval.
Using the component method
import matplotlib.pyplot as plt
from trame.widgets import matplotlib
fig, ax = plt.subplots(**figure_size)
widget = matplotlib.Figure(figure=None) # could pass fig at construction
widget.update(fig)
This Python package bundle the mpld3@0.5.7
JavaScript library. If you would like us to upgrade it, please reach out.