Skip to main content

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 figlinq package registers itself as chart_studio in Python's module system for compatibility with Plotly's validators.
  • You can use figlinq.Column objects directly in Plotly's xsrc/ysrc parameters when creating plots that reference grid data.
  • Both import figlinq and import chart_studio will work and refer to the same package.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

figlinq-0.3.2-py3-none-any.whl (93.4 kB view details)

Uploaded Python 3

File details

Details for the file figlinq-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: figlinq-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 93.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for figlinq-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8ff0248b2f90c868d2d677e22287a9023bcbdbf722e4811ebb8d7b1d2d0adfde
MD5 a3195b90a667ec610d22219986c93838
BLAKE2b-256 1e38b4b0bf0f5dc40b6ff50e972668b792d6d03ef015e815d6e0de3912990620

See more details on using hashes here.

Supported by

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