Skip to content

Kitware/trame-matplotlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b25cb32 · Apr 15, 2025

History

21 Commits
Jul 20, 2023
Mar 19, 2024
May 27, 2022
May 19, 2022
Feb 22, 2023
Mar 19, 2024
Jul 8, 2022
May 27, 2022
Jun 21, 2022
May 27, 2022
May 13, 2022
May 27, 2022
Mar 19, 2024
Jun 6, 2022
May 13, 2022
May 13, 2022
Apr 15, 2025
Mar 19, 2024
May 13, 2022

Repository files navigation

Matplotlib widget for trame pypi_download

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 | 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)

JavaScript dependency

This Python package bundle the mpld3@0.5.7 JavaScript library. If you would like us to upgrade it, please reach out.