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.2.9-py3-none-any.whl (84.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: figlinq-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 84.5 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.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a9367222a7911db3d92079bfdf9d86b273cab4291dc99bef7656b667586cbd6b
MD5 45e566fd516f76b62ada64fed3883f8f
BLAKE2b-256 3c2247ba707f01076a4c8bea8ec4e6a74b7a63512819177f301229121ae6fae6

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