mpld3 — Bringing Matplotlib to the Browser (original) (raw)
mpld3¶
The mpld3 project brings together Matplotlib, the popular Python-based graphing library, and D3js, the popular JavaScript library for creating interactive data visualizations for the web. The result is a simple API for exporting your matplotlib graphics to HTML code which can be used within the browser, within standard web pages, blogs, or tools such as theIPython notebook.
See the Example Gallery or Notebook Examples for some interactive demonstrations of mpld3 in action.
For a quick overview of the package, see the Quick Start Guide.
Contents¶
- Quick Start Guide
- Installing mpld3
- Frequently Asked Questions
- Plugins
- Example Gallery
- Notebook Examples
- API documentation
- Interactive D3 rendering of matplotlib images
- disable_notebook()
- display()
- display_d3()
- enable_notebook()
- fig_to_d3()
- fig_to_dict()
- fig_to_html()
- save_html()
- save_json()
- show()
- show_d3()
- Plugins to add behavior to mpld3 charts
- BoxZoom
- LineLabelTooltip
- MousePosition
- PointHTMLTooltip
- PointLabelTooltip
- Reset
- Zoom
- clear()
- connect()
- get_plugins()
- mpld3 renderer
- MPLD3Renderer
- mpld3 Utilities
- deprecated()
- get_id()
- html_id_ok()
- load_test_dataset()
- write_ipynb_local_js()
- mpld3 URLs
Source and Development¶
The source code for mpld3 can be found onGitHub. Please direct questions about how to do specific plots or interactions to Stack Overflowand tag them with mpld3 to make sure we see them. Pull requests, feature requests, and other ideas can be submitted via the GitHub page.