mkchang / plotlywrapper

simple plotly python api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plotlywrapper: pythonic plotly

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

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

2D Brownian Bridge
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()

Installation

To install the latest release

pip install plotlywrapper

Demo

Try out the interactive demo here,

Binder

or view the notebook statically.

Testing

To test run

make test

About

simple plotly python api

License:MIT License


Languages

Language:Jupyter Notebook 99.6%Language:Python 0.4%Language:Makefile 0.0%Language:Shell 0.0%