Skip to main content

Plot time-series data from line-delimited JSON.

Project description

foxplot

Build Documentation

Plot time-series data from line-delimited JSON.

Foxplot stands for "Frequent Observation diXionary plots". Frequent observations arise from the project's initial use case (robotic control loops). Dictionaries are the observation format used in Vulp. Plots are plots :wink:

Installation

$ pip install foxplot

Usage

Interactive mode

In interactive mode, you can explore the data in fox.data (tab completion works) and plot it using the fox.plot function:

$ foxplot -i upkie_2023-05-03-103245.mpack
Python 3.8.10 (default, Mar 13 2023, 10:26:41)
Type 'copyright', 'credits' or 'license' for more information
IPython 8.0.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: fox.plot(
   ...:     [
   ...:         fox.data.observation.servo.left_knee.torque,
   ...:         fox.data.observation.servo.left_wheel.torque,
   ...:     ],
   ...:     right=[
   ...:         fox.data.observation.servo.left_knee.velocity,
   ...:         fox.data.observation.servo.left_wheel.velocity,
   ...:     ],
   ...: )
New tab opened in your web browser! The command line is to produce it directly is:

foxplot upkie_2023-05-03-103245.mpack -l /observation/servo/left_knee/torque /observation/servo/left_wheel/torque -r /observation/servo/left_knee/velocity /observation/servo/left_wheel/velocity

Plotting from files

  • JSON: foxplot my_data.json -l /observation/cpu_temperature
  • MessagePack: foxplot my_data.mpack -l /observation/cpu_temperature

Design notes

  • Foxplot prioritizes ease-of-use (interactive mode) over performance

See also

  • µPlot's performance was a key enabler for this project.
  • rq, a tool to manipulate streams of records in various formats.

Project details


Download files

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

Source Distribution

foxplot-0.0.2.tar.gz (78.2 kB view details)

Uploaded Source

Built Distribution

foxplot-0.0.2-py3-none-any.whl (56.2 kB view details)

Uploaded Python 3

File details

Details for the file foxplot-0.0.2.tar.gz.

File metadata

  • Download URL: foxplot-0.0.2.tar.gz
  • Upload date:
  • Size: 78.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for foxplot-0.0.2.tar.gz
Algorithm Hash digest
SHA256 836c480e197fbb4fce2f110c89d6e1a642fe073e1fa320dd83637ab0b5d51dc6
MD5 cb9baa14bf69b88842e2cf7fa906ecaa
BLAKE2b-256 9d421b8ac13e10f92191040ad79e6f03503d33c5ae645b43f7d7710e2efa9cd2

See more details on using hashes here.

File details

Details for the file foxplot-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: foxplot-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 56.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for foxplot-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b1fa3f429799075a1add750b17817e076acdcfadda98d4940cf191814bd369f7
MD5 bf0261eec0a41e9507863cfc02829dbd
BLAKE2b-256 3b00db58b677fa652d46116f479f65a2da99ea85439503120237394123d2db2b

See more details on using hashes here.

Supported by

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