Skip to content

Kitware/trame-matplotlib

Repository files navigation

Matplotlib widget for trame

Test and Release

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.

Installing

trame-matplotlib can be installed with pip:

pip install --upgrade trame-matplotlib

Usage

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.

License

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.

Community

Trame | Discussions | Issues | RoadMap | Contact Us

Enjoying trame?

Share your experience with a testimonial or with a brand approval.

Code sample

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)