GitHub - plotly/matplotlylib: Convert matplotlib figures to interactive Plotly figures
Repository navigation
matplotlylibPublic
About
Convert matplotlib figures to interactive Plotly figures
Topics
converter data-visualization matplotlib plotly pythonResources
Readme MIT license Activity Custom propertiesStars
0 starsWatchers
0 watchingForks
0 forks Report repositoryBranches
Tags
Go to Branches page Go to Tags page
Latest commit
History
266 Commits
View commit history for this file.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|---|---|---|
| .github/ workflows | .github/ workflows | ||
| matplotlylib | matplotlylib | ||
| tests | tests | ||
| .gitignore | .gitignore | ||
| CHANGELOG.md | CHANGELOG.md | ||
| LICENSE.txt | LICENSE.txt | ||
| README.md | README.md | ||
| RELEASE.md | RELEASE.md | ||
| pyproject.toml | pyproject.toml | ||
Repository files navigation
matplotlylib
Convert matplotlib figures to Plotly figures.
Quickstart
pip install matplotlylib
import matplotlib.pyplot as plt from matplotlylib import mpl_to_plotly fig, ax = plt.subplots() ax.plot([0, 1], [0, 1]) plotly_fig = mpl_to_plotly(fig) plotly_fig.show()
Development
pip install -e ".[dev]"
python -m pytest
To publish a release, follow the steps in RELEASE.md .
The renderer is built on the vendored mplexporter
framework (BSD-3-Clause), originally part of the mpld3 project.
See matplotlylib/mplexporter/LICENSE for its license.
About
Convert matplotlib figures to interactive Plotly figures