Skip to main content

The Nutshell

Use this package to render matplotlib figures in plotly. Simply stick a one-liner in after you’ve created your mpl figure:

fig_to_plotly(fig, username, api_key)

That will open up a new browser window with your mpl figure rendererd in plotly.

About

Plotly is an online collaborative data analysis and graphing tool. The matplotlylib package allows users to export matplotlib figures to plotly. Plotly figures are shared, tracked, and edited all online and the data is always accessible from the graph. The goal of this project is to offer users a simple interface to send a matplotlib figure to plotly from Python:

fig_to_plotly(fig, username, api_key)

That’s it. Find out more, sign up, and start sharing by visiting us at https://plot.ly.

Install via pip

Assuming you have already installed pip, you can simply enter the following in a terminal program:

$ pip install matplotlylib

Install via make

A makefile is included on the GitHub repo for this project that is not part of the PyPI distribution. If you want to make changes to this code, you’ll probably want to go this route.

To get started you need to grab a copy of the matplotlylib repo. The makefile included in this is all you need to get setup. Just do the following:

$ make build
$ make install

The first instruction will grab mplexporter and move it into the matplotlylib directory.

The second instruction will install the matplotlylib package, which now has mplexporter built into it.

IPython notebook

The project page has an extensive IPython notebook with example usage.

Or, have a look at our plotly profile, where you can open and edit all of the examples. If the NB is loading slowing, checkout our static site hosted on GitHub page at: http://plotly.github.io/matplotlylib/.

Details

The matplotlylib package requires the matplotlib and plotly Python packages.

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

Created by: Plotly, @plotlygraphs, matplotlylib@gmail.com

License: MIT

Metadata

Release files for matplotlylib 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for matplotlylib 0.1.0
File Size Uploaded
matplotlylib-0.1.0.tar.gz 457.0 kB Details

Release files / matplotlylib-0.1.0.tar.gz

Download URL matplotlylib-0.1.0.tar.gz
Size 457.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c7f5fa7f842742d9385b6961f88b9a992a749391a5f7229cc8be325f712c1fce
BLAKE2b-256 checksum
How to use checksums
5bb2a5a493e472b7d609691b8fad53280faaad003141d7583e096af7cb831f3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page