Convert matplotlib figures to Plotly figures.
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()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.