Terminal based plotting with seaborn
Project description
gull
Terminal-based plotting with seaborn
Installation
pip install gull
Usage
Plot data from a tabular data file or from stdin, all from the terminal. An ideal companion for awk, grep and other terminal-based processing tools. Uses seaborn as a plotting interface, so for more information see the seaborn website (https://seaborn.pydata.org/)
plot types:
relplot (default), kinds: scatter, line catplot, kinds: strip (default), swarm, box, violin, boxen, point, bar, count displot, kinds: hist (default), kde, ecdf pairplot
Define the plotting parameters and columns to use with a string.
Example: to plot a scatterplot of data with column names col1, col2, and coloured by the value in col3.
gull data.csv -p "plot:relplot,kind:scatter,x:col1,y:col2,hue:col3" -c "col1,col2,col3"
If no column names are specified in the --columns option, the first line of the input will be taken as the column names.
Usage alongside awk: gull is ideal of using alongside awk
for basic data processing. e.g.
awk 'NF<10 {print $0,$1 }' /tmp/userdata.txt | gull -p "plot:replot,kind:scatter,x:pos_x,y:pos_y" -c "pos_x,pos_y"
Here, we print the first 10 lines of the first two columns, with a ',' as a separator. Then we pass the result to gull to create a scatter plot with the columns names 'pos_x' and 'pos_y'
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 Distributions
Built Distribution
File details
Details for the file gullplot-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: gullplot-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fe395bb3b722a65a0361dc803ecd4049cf61a6aaf3117d0be01b7ab124e9e5f |
|
MD5 | 1681ea8a7ac9c45d050371ef9d20a647 |
|
BLAKE2b-256 | 0a95659b20b851653240912ef79f16659f11bef18a2a6d2c286c49af74694987 |