Deephaven Plugin for Plotly
Project description
Deephaven Plugin for Plotly
The Deephaven Plugin for Plotly. Allows for opening Plotly plots in a Deephaven environment. Any Plotly plot should be viewable by default. For example:
Scatter Plot
import plotly.express as px
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species",
size='petal_length', hover_data=['petal_width'])
Box Plot
import plotly.express as px
df = px.data.tips()
fig = px.box(df, x="time", y="total_bill")
Multiple Series
It's possible to have multiple kinds of series in the same figure. Here is an example driving a line and a bar plot:
from plotly.subplots import make_subplots
import plotly.graph_objects as go
fig = make_subplots(rows=1, cols=2)
fig.add_trace(
go.Scatter(x=[1, 2, 3], y=[4, 5, 6]),
row=1, col=1)
fig.add_trace(
go.Bar(x=[1, 2, 3], y=[4, 5, 6], marker=dict(color=[4, 5, 6], coloraxis="coloraxis")),
row=1, col=2)
fig.update_layout(title_text="Side By Side Subplots", showlegend=False)
Plot data from a Deephaven table
from deephaven import empty_table, numpy
import plotly.express as px
t = empty_table(300).update(formulas=["X = (double)i", "Y = Math.sin(X)"])
data = numpy.to_numpy(t, ["X", "Y"])
fig = px.line(x=data[:,0], y=data[:,1])
Build
To create your build / development environment:
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip setuptools
pip install build deephaven-plugin plotly
To build:
python -m build --wheel
produces the wheel into dist/
.
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 deephaven-plugin-plotly-0.0.1.dev1.tar.gz
.
File metadata
- Download URL: deephaven-plugin-plotly-0.0.1.dev1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eeb12ed14bc6a190ad72016289a9c5eff7d34efaa64a01689f99ff4972df7e4 |
|
MD5 | 8da069683682e500db16daf8ee1f1570 |
|
BLAKE2b-256 | 9f270c8dd94ce8fd646cfd01247d25abd6992c4715f52c0c7041485abd6dbe14 |
File details
Details for the file deephaven_plugin_plotly-0.0.1.dev1-py3-none-any.whl
.
File metadata
- Download URL: deephaven_plugin_plotly-0.0.1.dev1-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c136344f2776eec6aa08bef71d7917de53cb005f8f1e7aad8ad24b91842dbef4 |
|
MD5 | 37050e223a0bcd7cfd8a5daa3dd4a2ef |
|
BLAKE2b-256 | df458e0d1d4f8ed86d1e28d675d0ac2cd720626e8a60a1dc468165701fe8114a |