quickdraw - a cli plotting tool
Project description
qd
quick-draw: a cli plotting tool
qd
is a command line tool to quickly make plots from csv and json files or
streams. It is built on top of the pandas
and plotly
libraries.
Installation and usage
qd
can be installed via pip install qd-plot
. It requires Python 3.7+.
Basic usage
Make a quick plot using the first columns available and display the output in a gui (default web browser).
cat data/trig.json | qd --gui
By default qd
reads data from stdin
and writes image bytes to stdout
, however it
also accepts input and output files as arguments, as well as the --gui
option shown
above.
qd -i data/trig.json -o trig.png
All the cli functionality available can be seen via the --help
option.
qd --help
MacOS + iTerm2
Since qd
writes to stdout by default, the images can be displayed right in the
terminal window if using a compatible terminal, such as iTerm2 with imgcat
:
cat data/trig.json | qd | imgcat
More examples
Mean in bins
Plot the mean values in some bins specifying the x and y columns.
cat data/trig.json | qd -x x -y sin,cos --mean --gui
Percentile in bins
Plot the 95th percentile values in 20 bins
cat data/trig.json | qd -x x -y sin --quant -q 95 --nbins 20 --gui
Histogram of values
Make a histogram from two sets of data using 20 bins.
cat data/dists.csv | qd -x gauss,expo --hist -n20 --gui
Local Development
Clone this repo from github and in a virtual environment do the following:
pip install . # installs qd based on local code changes
pip install -r requirements-dev.txt # installs extra packages for dev and testing
Tests can be run via:
pytest -n4
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 Distribution
Built Distribution
File details
Details for the file qd-plot-0.0.3.tar.gz
.
File metadata
- Download URL: qd-plot-0.0.3.tar.gz
- Upload date:
- Size: 65.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c83e936583644cdd9ee5629c6c1937bafc0528fb55568e514d0a6bb160bbc9a |
|
MD5 | 45c1e16a578f12cc7c3caed1cd38ca5f |
|
BLAKE2b-256 | 4f79986e58ec7544903cd15eef207994a164ae912a328c440f3edf366afb2997 |
File details
Details for the file qd_plot-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: qd_plot-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8dca6e8b8ed8097dd4a093d8f5e4e784d083101e0b295bec207d03789da0767 |
|
MD5 | 16b963fec642c62d1165fac3a15c3418 |
|
BLAKE2b-256 | 5e6a8e2a7870f5a942586cfbfa7478e1a2a8c6f4ce86c40250d5b6175a069e5b |