Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 874 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 874 Bytes

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.