Utilities for interfacing with Plotly's Chart Studio and figlinq.com
Project description
Figlinq Python Library
This package contains utilities for interfacing with Plotly's Chart Studio and Figlinq services. The project has been cloned from chart-studio 1.1.0. The original package has been modified so that credentials and configuration can be set from environment variables (see figlinq.tools.get_credentials() and figlinq.tools.get_config()). Additional functions have been added to support the Figlinq service. The original package is licensed under the MIT license, and this package is also licensed under the MIT license.
Installation
pip install figlinq
Usage
Basic Grid and Plot Upload
import figlinq
import plotly.graph_objects as go
# Create a grid with columns
col1 = figlinq.Column([1, 2, 3], "time")
col2 = figlinq.Column([4, 2, 5], "voltage")
grid = figlinq.Grid([col1, col2])
# Upload the grid
grid_url = figlinq.upload(grid, filetype="grid", filename="time vs voltage")
# Download the grid
downloaded_grid = figlinq.download(grid_url)
# Create a plot that references the grid columns
trace = go.Scatter(xsrc=downloaded_grid[0], ysrc=downloaded_grid[1], mode="lines+markers")
fig = go.Figure(data=[trace])
# Upload the plot
plot_url = figlinq.upload(fig, filetype="plot", filename="My Plot")
Important Notes
- The
figlinqpackage registers itself aschart_studioin Python's module system for compatibility with Plotly's validators. - You can use
figlinq.Columnobjects directly in Plotly'sxsrc/ysrcparameters when creating plots that reference grid data. - Both
import figlinqandimport chart_studiowill work and refer to the same package.
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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file figlinq-0.2.27-py3-none-any.whl.
File metadata
- Download URL: figlinq-0.2.27-py3-none-any.whl
- Upload date:
- Size: 88.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e867c24b62cacd46ccb75245eed08db04527c66c40dc4fd5c0d5063281f63f1
|
|
| MD5 |
3c600d7d566e07495cc9bad5cf4453cb
|
|
| BLAKE2b-256 |
b7ae50029676f33c298d7d192a85c92b6f64ea0901c2d3642067c315c9e93ac7
|