Fast command-line plotting for research data
Project description
ezplot-cli
Fast command-line plotting for research data on Linux servers.
Install
pip install ezplot-cli
Get Help
ezplot -h
ezplot scatter -h
ezplot line -h
ezplot hist -h
ezplot density -h
ezplot heatmap -h
If you pass only an input file, ezplot defaults to:
ezplot input.dat
which is equivalent to:
ezplot scatter -xi 0 -yi 1 input.dat
If that file does not exist, ezplot returns a readable file error instead of an argparse usage error or Python traceback.
Core Syntax
ezplot <scatter|line|hist|density|heatmap> [options] <input_file>
- Output is always a PNG. Default output path is
graph.png. - Comment lines are skipped automatically. Default comment prefix is
#. - PLUMED-style comment headers such as
#! FIELDS time cv1 cv2are recognized. - Delimiters are auto-detected between CSV and whitespace-separated text.
- If axis labels are not given,
ezplotuses header names when available, otherwise falls back toXandY.
Column Selection
-x,-y,-zselect columns by name.-xi,-yi,-ziselect columns by zero-based index.- Column names support exact match first, then unique prefix matching.
- The same axis cannot use both name and index forms at once.
scatter,line, andhistallow multiple y columns through comma-separated-yor-yi.densityuses-x/-xifor 1D, and-xplus-yfor 2D.heatmapexpects exactly one x column, one y column, and one z column.- If you use column names but the file has no header, the command fails with an error.
Common Options
-o, --output PATH: output PNG path. Defaultgraph.png.--xlabel TEXT: override x-axis label.--ylabel TEXT: override y-axis label.--xlim MIN,MAX: set x-axis range.--ylim MIN,MAX: set y-axis range.--dpi INT: output resolution. Default160.--figsize W,H: figure size in inches. Default6,4.--comment PREFIX: comment prefix to skip. Default#.
Command-Specific Options
scatter:--size,--alphaline:--linewidth,--markersize,--alphahist:--binsdensity:--bin WIDTHfor 1D,--bin DX,DYfor 2Dheatmap:--bin DX,DY,--vmin,--vmax
Behavior Notes
linesorts by x before drawing.histoverlays multiple y columns in one plot and uses shared bin edges across all series.densityis histogram-based density, not KDE.density -x col file.datdraws a 1D density line.density -x col1 -y col2 file.datdraws a 2D density heatmap.densitydefaults to 100 bins per axis. If--binis given, it is treated as bin width rather than bin count.heatmapaccepts long-tablex,y,zinput, averages duplicate(x,y)points, and leaves missing grid cells blank.heatmap --bin DX,DYbins noisy x/y coordinates onto a zero-alignedDX * DYgrid before averaging z values inside each bin.- Existing output files are overwritten by default.
Examples
ezplot scatter -x time -y value data.dat
ezplot scatter -xi 0 -yi 1,2 data.dat --xlim 0,100 --ylim -1,1
ezplot line -x z -y rho,cos_phi test1.dat -o line.png
ezplot hist -yi 1,2 --bins 80 data.csv
ezplot density -x value density_1d_demo.csv
ezplot density -x x -y y --bin 0.2,0.2 density_2d_demo.csv
ezplot heatmap -x x -y y -z value grid.csv --vmin 0 --vmax 10
ezplot heatmap -x x -y y -z fes --bin 0.01,0.01 fes.csv
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ezplot_cli-0.1.0.tar.gz.
File metadata
- Download URL: ezplot_cli-0.1.0.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84fe6bc8ca9767443955069d91118018b0c161f91ec0bc83edc11355aed80531
|
|
| MD5 |
0d2529bccfaae5ece4e63c431a34de45
|
|
| BLAKE2b-256 |
dad7dd4b3775b1dbc2312f456aea3178d0d4c1e6ddcac2bdd2ebb9125dbeffcd
|
Provenance
The following attestation bundles were made for ezplot_cli-0.1.0.tar.gz:
Publisher:
release.yml on yckbz/ezplot-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ezplot_cli-0.1.0.tar.gz -
Subject digest:
84fe6bc8ca9767443955069d91118018b0c161f91ec0bc83edc11355aed80531 - Sigstore transparency entry: 1295734012
- Sigstore integration time:
-
Permalink:
yckbz/ezplot-cli@238ad00e59f03e457aca895087a759211448bb16 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/yckbz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@238ad00e59f03e457aca895087a759211448bb16 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ezplot_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ezplot_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd42ecfdd23198e564713599c1045462e3ffa1d63d314d5d5b0259b2969e4fed
|
|
| MD5 |
86128e7707fb29159eac7112b97e6908
|
|
| BLAKE2b-256 |
37753a1a725be1eaadcfcaa449194b54bcb79f0ff709e5fd8f0001821f3d0512
|
Provenance
The following attestation bundles were made for ezplot_cli-0.1.0-py3-none-any.whl:
Publisher:
release.yml on yckbz/ezplot-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ezplot_cli-0.1.0-py3-none-any.whl -
Subject digest:
dd42ecfdd23198e564713599c1045462e3ffa1d63d314d5d5b0259b2969e4fed - Sigstore transparency entry: 1295734092
- Sigstore integration time:
-
Permalink:
yckbz/ezplot-cli@238ad00e59f03e457aca895087a759211448bb16 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/yckbz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@238ad00e59f03e457aca895087a759211448bb16 -
Trigger Event:
workflow_dispatch
-
Statement type: