Command line script and Python library to make plots from data files.
Project description
plottoolbox - Quick Guide
The plottoolbox is a Python script to manipulate time-series on the command line or by function calls within Python. Uses pandas (http://pandas.pydata.org/) or numpy (http://numpy.scipy.org) for any heavy lifting.
Requirements
pandas - on Windows this is part scientific Python distributions like Python(x,y), Anaconda, or Enthought.
Installation
pip
pip install plottoolbox
conda
conda install -c conda-forge plottoolbox
Usage - Command Line
Just run ‘plottoolbox –help’ to get a list of subcommands:
usage: plottoolbox [-h]
{autocorrelation, bar, bar_stacked, barh, barh_stacked,
bootstrap, boxplot, double_mass, heatmap, histogram,
kde, kde_time, lag_plot, lognorm_xaxis, lognorm_yaxis,
norm_xaxis, norm_yaxis, probability_density,
scatter_matrix, target, taylor, time, weibull_xaxis,
weibull_yaxis, xy, about} ...
positional arguments:
{autocorrelation, bar, bar_stacked, barh, barh_stacked, bootstrap,
boxplot, double_mass, heatmap, histogram, kde, kde_time, lag_plot,
lognorm_xaxis, lognorm_yaxis, norm_xaxis, norm_yaxis,
probability_density, scatter_matrix, target, taylor, time, weibull_xaxis,
weibull_yaxis, xy, about}
autocorrelation
Autocorrelation plot.
bar
Bar plot, sometimes called a "column" plot.
bar_stacked
Stacked vertical bar, sometimes called a stacked column plot.
barh
Bar plot, sometimes called a "column" plot.
barh_stacked
Horizontal stacked bar plot.
bootstrap
Bootstrap plot randomly selects a subset of the imput time-series.
boxplot
Box and whiskers plot.
double_mass
Double mass curve - cumulative sum of x against cumulative sum of y.
heatmap
2D heatmap of daily data.
histogram
Histogram.
kde
Kernel density estimation of probability density function.
kde_time
A time-series plot with a kernel density estimation (KDE) plot.
lag_plot
Lag plot.
lognorm_xaxis
Log-normal x-axis.
lognorm_yaxis
Log-normal y-axis.
norm_xaxis
Normal x-axis.
norm_yaxis
Normal y-axis.
probability_density
Probability plot.
scatter_matrix
Plots all columns against each other in matrix of plots.
target
Creates a "target" diagram to plot goodness of fit.
taylor
Taylor diagram to plot goodness of fit.
time
Time-series plot.
weibull_xaxis
Weibull x-axis.
weibull_yaxis
Weibull y-axis.
xy
Creates an 'x,y' plot, also known as a scatter plot.
about
Display version number and system information.
optional arguments:
-h, --help show this help message and exit
The default for all of the subcommands is to accept data from stdin (typically a pipe). If a subcommand accepts an input file for an argument, you can use “–input_ts=input_file_name.csv”, or to explicitly specify from stdin (the default) “–input_ts=’-‘”.
For the subcommands that output data it is printed to the screen and you can then redirect to a file.
Usage - API
You can use all of the command line subcommands as functions. The function signature is identical to the command line subcommands. The return is always a PANDAS DataFrame. Input can be a CSV or TAB separated file, or a PANDAS DataFrame and is supplied to the function via the ‘input_ts’ keyword.
Simply import plottoolbox:
from plottoolbox import plottoolbox # Then you could call the functions plt = plottoolbox.time(input_ts='tests/test_fill_01.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 plottoolbox-105.1.0.tar.gz.
File metadata
- Download URL: plottoolbox-105.1.0.tar.gz
- Upload date:
- Size: 4.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5be624785114948cd28b9969d76496e3ae9085820462ef146d9046852ce1b836
|
|
| MD5 |
f590627074fe3b9f9bf681f700a6995b
|
|
| BLAKE2b-256 |
227b13266ab5dcba7ea45fd538bbba28131f78d50e6b2aeef10a5dc9884f5f57
|
Provenance
The following attestation bundles were made for plottoolbox-105.1.0.tar.gz:
Publisher:
pypi-package.yml on timcera/plottoolbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plottoolbox-105.1.0.tar.gz -
Subject digest:
5be624785114948cd28b9969d76496e3ae9085820462ef146d9046852ce1b836 - Sigstore transparency entry: 203699468
- Sigstore integration time:
-
Permalink:
timcera/plottoolbox@40c3597c2e486b8bb08793c2b498d7e87af0679d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/timcera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-package.yml@40c3597c2e486b8bb08793c2b498d7e87af0679d -
Trigger Event:
push
-
Statement type:
File details
Details for the file plottoolbox-105.1.0-py3-none-any.whl.
File metadata
- Download URL: plottoolbox-105.1.0-py3-none-any.whl
- Upload date:
- Size: 295.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fd9544a7eae3d4ded9298c2780b389666c6e0d66b5e7fb348e153b2c5a6be64
|
|
| MD5 |
fdf6982cdc27ad81fbf387fa16f0cf4e
|
|
| BLAKE2b-256 |
11d049796aedadf85cdb2dfd4c5a89c72b9a06dfa1beb63080ecc0df1422dc65
|
Provenance
The following attestation bundles were made for plottoolbox-105.1.0-py3-none-any.whl:
Publisher:
pypi-package.yml on timcera/plottoolbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plottoolbox-105.1.0-py3-none-any.whl -
Subject digest:
2fd9544a7eae3d4ded9298c2780b389666c6e0d66b5e7fb348e153b2c5a6be64 - Sigstore transparency entry: 203699470
- Sigstore integration time:
-
Permalink:
timcera/plottoolbox@40c3597c2e486b8bb08793c2b498d7e87af0679d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/timcera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-package.yml@40c3597c2e486b8bb08793c2b498d7e87af0679d -
Trigger Event:
push
-
Statement type: