Plotlywrapper: to make easy plots easy to make.
Project description
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!
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,
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file plotlywrapper-0.1.0.tar.gz
.
File metadata
- Download URL: plotlywrapper-0.1.0.tar.gz
- Upload date:
- Size: 2.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 956d986e1162222e6dec97ae9f5f4134cd147b4a18e56ebdabaa685c0d7e6436 |
|
MD5 | e3320e42baaa6b506a25398bd51c08d5 |
|
BLAKE2b-256 | 5cb7cf169097b3d64e2046c10a71a57d2b044d53a6e8f448438e8ea2bf65c6c6 |
File details
Details for the file plotlywrapper-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: plotlywrapper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 32.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | caad8bb244a73d5761c2a2061ec6102b240aa49cf1912e019a8a6fd51eb32f3e |
|
MD5 | fc56c986e80c206d700a398e6ae28ebc |
|
BLAKE2b-256 | f6e1c956743584543a7e3cc9d3c7ea45e6ca3957c036656610e3a0990cfa0a3b |