# trame-matplotlib **Repository Path**: mirrors_Kitware/trame-matplotlib ## Basic Information - **Project Name**: trame-matplotlib - **Description**: Trame widget for Matplotlib - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-05-12 - **Last Updated**: 2026-01-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README .. |pypi_download| image:: https://img.shields.io/pypi/dm/trame-matplotlib Matplotlib widget for trame |pypi_download| =========================================================================== .. image:: https://github.com/Kitware/trame-matplotlib/actions/workflows/test_and_release.yml/badge.svg :target: https://github.com/Kitware/trame-matplotlib/actions/workflows/test_and_release.yml :alt: 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 `__: .. code-block:: bash 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 `__ .. image:: https://zenodo.org/badge/410108340.svg :target: https://zenodo.org/badge/latestdoi/410108340 Enjoying trame? ----------------------------------------------------------- Share your experience `with a testimonial `__ or `with a brand approval `__. Code sample ----------------------------------------------------------- Using the component method .. code-block:: python 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 `_.