All Projects → mpld3 → Mpld3

mpld3 / Mpld3

Licence: bsd-3-clause
mpld3 provides a custom stand-alone javascript library built on D3, which parses JSON representations of plots. The mpld3 python module provides a set of routines which parses matplotlib plots (using the mplexporter framework) and outputs the JSON description readable by mpld3.js.

Programming Languages

Jupyter Notebook
11667 projects
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Mpld3

Cikm 2019 Analyticup
1st Solution for 2019-CIKM-Analyticup, Efficient and Novel Item Retrieval for Large-scale Online Shopping Recommendation
Stars: ✭ 173 (-91.84%)
Mutual labels:  jupyter-notebook
Deep Math Machine Learning.ai
A blog which talks about machine learning, deep learning algorithms and the Math. and Machine learning algorithms written from scratch.
Stars: ✭ 173 (-91.84%)
Mutual labels:  jupyter-notebook
Evolutionary Computation Course
Jupyter/IPython notebooks about evolutionary computation.
Stars: ✭ 173 (-91.84%)
Mutual labels:  jupyter-notebook
Weibospider sentimentanalysis
借助Python抓取微博数据,并对抓取的数据进行情绪分析
Stars: ✭ 173 (-91.84%)
Mutual labels:  jupyter-notebook
Stata kernel
A Jupyter kernel for Stata. Works with Windows, macOS, and Linux.
Stars: ✭ 172 (-91.89%)
Mutual labels:  jupyter-notebook
Dfp
Reinforcement Learning with Goals
Stars: ✭ 173 (-91.84%)
Mutual labels:  jupyter-notebook
Notebooks
Notebooks on how to use Distributed Evolutionary Algorithm in Python (DEAP)
Stars: ✭ 172 (-91.89%)
Mutual labels:  jupyter-notebook
Captcha break
验证码识别
Stars: ✭ 2,268 (+6.93%)
Mutual labels:  jupyter-notebook
Personal data science projects
Stars: ✭ 173 (-91.84%)
Mutual labels:  jupyter-notebook
Ipynb
Package / Module importer for importing code from Jupyter Notebook files (.ipynb)
Stars: ✭ 174 (-91.8%)
Mutual labels:  jupyter-notebook
Malware Misc Re
Miscellaneous Malware RE
Stars: ✭ 173 (-91.84%)
Mutual labels:  jupyter-notebook
Image generator
DCGAN image generator 🖼️.
Stars: ✭ 173 (-91.84%)
Mutual labels:  jupyter-notebook
Osvos Caffe
One-Shot Video Object Segmentation
Stars: ✭ 173 (-91.84%)
Mutual labels:  jupyter-notebook
Manifold Flow
Manifold-learning flows (ℳ-flows)
Stars: ✭ 173 (-91.84%)
Mutual labels:  jupyter-notebook
Iocaml
An OCaml kernel for the IPython notebook
Stars: ✭ 173 (-91.84%)
Mutual labels:  jupyter-notebook
Iminuit
Jupyter-friendly Python interface for C++ MINUIT2
Stars: ✭ 172 (-91.89%)
Mutual labels:  jupyter-notebook
Shared
Code and shared files
Stars: ✭ 171 (-91.94%)
Mutual labels:  jupyter-notebook
Annotated Transformer
http://nlp.seas.harvard.edu/2018/04/03/attention.html
Stars: ✭ 2,403 (+13.3%)
Mutual labels:  jupyter-notebook
Provingground
Proving Ground: Tools for Automated Mathematics
Stars: ✭ 173 (-91.84%)
Mutual labels:  jupyter-notebook
Deep Crowd Counting crowdnet
An independent implementation of "CrowdNet: A Deep Convolutional Network for Dense Crowd Counting"
Stars: ✭ 173 (-91.84%)
Mutual labels:  jupyter-notebook

mpld3: A D3 Viewer for Matplotlib

This is an interactive D3js-based viewer which brings matplotlib graphics to the browser. Please visit http://mpld3.github.io for documentation and examples.

You may also see the blog post, or the IPython notebook examples available in the notebooks directory of this repository.

version status downloads build status

About

mpld3 provides a custom stand-alone javascript library built on D3, which parses JSON representations of plots. The mpld3 python module provides a set of routines which parses matplotlib plots (using the mplexporter framework) and outputs the JSON description readable by mpld3.js.

Installation

mpld3 is compatible with python 2.6-2.7 and 3.3-3.4. It requires matplotlib version 2.2.2 and jinja2 version 2.7+.

Optionally, mpld3 can be used with IPython notebook, and requires IPython version 1.x or (preferably) version 2.0+.

This package is based on the mplexporter framework for crawling and exporting matplotlib images. mplexporter is bundled with the source distribution via git submodule.

Within the git source directory, you can download the mplexporter dependency and copy it into the mpld3 source directory using the following command:

$ python setup.py submodule

The submodule command is not necessary if you are installing from a distribution rather than from the git source.

Once the submodule command has been run, you can build the package locally using

$ python setup.py build

or install the package to the standard Python path using:

$ python setup.py install

Or, to install to another location, use

$ python setup.py install --prefix=/path/to/location/

Then make sure your PYTHONPATH environment variable points to this location.

Trying it out

The package is pure python, and very light-weight. You can take a look at the notebooks in the examples directory, or run create_example.py, which will create a set of plots and launch a browser window showing interactive views of these plots.

For a more comprehensive set of examples, see the IPython notebook examples available in the notebooks directory.

Test Plots

To explore the comparison between D3 renderings and matplotlib renderings for various plot types, run the script visualize_tests.py. This will generate an HTML page with the D3 renderings beside corresponding matplotlib renderings.

Features

Many of the core features of matplotlib are already supported. And additionally there is some extra interactivity provided via the plugin framework. The following is a non-exhausive list of features that are yet to be supported:

  • tick specification & formatting
  • some legend features
  • blended transforms, such as those required by axvlines and axhlines
  • twin axes (i.e. multiple scales on one plot) tied together

If any of these look like something you'd like to tackle, feel free to submit a pull request!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].