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

Uploaded Python 3

File details

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

File metadata

  • Download URL: figlinq-0.2.24-py3-none-any.whl
  • Upload date:
  • Size: 87.8 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.24-py3-none-any.whl
Algorithm Hash digest
SHA256 7b4d09c82ea8c2640b43890daf24e8be7051dd9b155732887c5370e61974661f
MD5 df2d6eb29b9b8dfa98039aadc5facf10
BLAKE2b-256 08e550f09e17e475746e3cacaec9455cd75b82cd8935254689f3495a6f803bb8

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