qpmg
usage: qpmg [-h] [-x X [X ...]] [-y Y [Y ...]] [--xlabel XLABEL [XLABEL ...]]
[--ylabel YLABEL [YLABEL ...]] [--legend LEGEND [LEGEND ...]]
[--style STYLE] [--title TITLE [TITLE ...]]
[--style-file STYLE_FILE]
filenames [filenames ...]
qpmg is a simple Python script to quickly inspect output that adheres to the format used by MESA’s profiles and histories and GYRE’s summaries and mode files. While qpmg provides some options, it’s intended for quick inspection rather than publication-quality plots. To see the list of available columns in a file, run qpmg on a given file. The defaults will cause an error that displays the available columns.
positional arguments: filenames
optional arguments:
- -h, --help
show this help message and exit
- -x X, -y Y
Column(s) to use for the x and y variables. The code loops through however many x and y keys you give (inner loop over x, outer loop over y) but most of the time you probably only want one x variable.
- --xlabel XLABEL, --ylabel YLABEL
Overrides the axis label with the given string. Accepts spaces. i.e. ‘effective temperature’ is OK. Default is to use the first argument of -x/-y.
- --legend LABELS
If auto, add a legend using the filenames as keys. Otherwise, use the arguments as a list of keys. Default is no legend.
- --style STYLE
point style, passed to plot function (default=-)
- --scale-x SCALE_X
multiply variables on x-axis by this much (default=1)
- --scale-y SCALE_Y
multiply variables on y-axis by this much (default=1)
- --flip-x
reverse the x-axis
- --flip-y
reverse the y-axis
- --plotter PLOTTER
use matplotlib.pyplot.PLOTTER to plot (one of plot, semilogx, semilogy or loglog, default=plot)
- --title TITLE
Adds the given title to the plot. Accepts spaces. i.e. my plot is OK. Default is no title.
- --style-file STYLE_FILE
Specifies a matplotlib style file to load.
Installation
qpmg is available through pip:
pip install qpmg
You can also clone this GitHub repo:
git clone https://github.com/warrickball/qpmg.git cd qpmg pip install -e .
or similar.
Finally, the program is entirely constrained in the script qpmg, so you can download this one file and use it as you please. For example, I keep $HOME/.local/bin in my $PATH variable, so I might get the latest version of the script with
wget https://raw.githubusercontent.com/warrickball/qpmg/master/qpmg -O $HOME/.local/bin
Metadata
Release files for qpmg 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qpmg-0.2.2.tar.gz | 4.7 kB | Without provenance | Details for qpmg-0.2.2.tar.gz |
Release files / qpmg-0.2.2.tar.gz
| Download URL | qpmg-0.2.2.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffd83320a3866ad5e64c61db112495231aca0e7cb17d19a4990ec0bf0a2aac2d
|
|
BLAKE2b-256 checksum How to use checksums |
668384891ba6f490e9a06deda5be3816cf4dc2ba0d077f90f52bfda2168cc74a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for qpmg 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.