Skip to main content

Plotlywrapper: to make easy plots easy to make.

Project description

Build Status rtd.io PyPI version PyPI codecov.io Code Health Scrutinizer Code Quality

News Tests are failing due to release of plotly v3. Need to reevaluate need of library, in the meantime it still works with plotly v2.

Plotlywrapper wraps plotly to make easy plots easy to make. Check out the docs!

https://cloud.githubusercontent.com/assets/86304/17239866/2c4c30b2-551c-11e6-9bb8-7ed467ebdacb.png

2D Brownian Bridge

Motivation

Compare the following code snippets which generate the same plot.

Plotly

Taken from https://plot.ly/python/getting-started/

import plotly
from plotly.graph_objs import Scatter, Layout
plotly.offline.plot({
"data": [
    Scatter(x=[1, 2, 3, 4], y=[4, 1, 3, 7])
],
"layout": Layout(
    title="hello world"
)
})

Plotlywrapper

import plotlywrapper as pw
plot = pw.line(x=[1, 2, 3, 4], y=[4, 1, 3, 7])
plot.title('hello world')
plot.show()

Install

To install the latest release:

pip install plotlywrapper

Demo

Try out the interactive demo here,

Binder

or view the notebook statically.

JupyterLab

Plotly doesn’t render in JupyterLab by default. You need to install the JupyterLab Plotly extension:

jupyter labextension install @jupyterlab/plotly-extension

Developed in this repo.

Testing

To test run:

make test

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plotlywrapper-0.1.0.tar.gz (2.4 MB view hashes)

Uploaded Source

Built Distribution

plotlywrapper-0.1.0-py3-none-any.whl (32.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page