Plots Gromacs SAXS, Pepsi-SAXS, Crysol and Debyer SWAXS intensity curves
Project description
Installation
pip3 install dplot
Usage examples
crysol
output
dplot "out/crysol.png" --other "in/crysol.int" \
--headers "Q,Intensity,Scattering (in vacuo),Scattering (excluded volume),Convex border layer" \
--skip 1 -x "Q" --log
or
dplot "out/crysol.png" --crysol "in/crysol.int"
debyer
output
dplot "out/debyer.png" --other "in/debyer.dat" --skip 2 --headers "Q,Intensity" -x "Q" --log
or
dplot "out/debyer.png" --debyer "in/debyer.dat"
psaxs
output
dplot "out/psaxs.png" --other "in/psaxs.tsv" --headers "Q,Intensity" -x "Q" --log
or
dplot "out/psaxs.png" --psaxs "in/psaxs.tsv"
Multiple sources
./dplot.py "out/combined.png" --psaxs "in/psaxs.tsv" --crysol "in/crysol.int" --debyer "in/debyer.dat"
Mixing manual plots with presets works as well
./dplot.py "out/combined.png" --other "in/psaxs.tsv" --headers "Q,Intensity" -x "Q" --crysol "in/crysol.int" --debyer "in/debyer.dat"
Window
Provide -
instead of a file name to open a window
dplot - --psaxs "in/psaxs.tsv"
Possible options
Unfortunately --help
won't work.
Use --verbose
to see possible switches.
Development
Dependencies
pandas
seaborn
matplotlib
- Python 3.6 - 3.9
With pyenv or conda
python3 -m pip install pandas seaborn matplotlib
Clone
git clone git@gitlab.com:cbjh/plotting/dplot.git
Install
cd dplot
python3 -m pip install -e .
Files in dplot
folder can be edited without need for re-installation.
Re-installation still needs to be done if the folder is moved somewhere else
python3 -m pip uninstall dplot
cd dplot
python3 -m pip install -e .
Tests
sudo apt install imagemagick
python3 -m pip install -e .
./test.sh
Keep in mind that this overrides your locally installed dplot
.
Packaging
Prerequisites
sudo apt-get install python3-venv
python3 -m pip install --upgrade build twine
Publishing
Review setup.py
, in particular change the version.
python3 -m build
python3 -m twine upload --repository pypi dist/*
(it asks for PyPI credentials)
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 dplot-0.0.3.tar.gz
.
File metadata
- Download URL: dplot-0.0.3.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 724b8c88da7ef303b88c91942a6c616ced12d860fd76267c0b9365aa81189052 |
|
MD5 | 78af9147d729ac14c577a2fed28c3033 |
|
BLAKE2b-256 | 2d2f42bd66415286b500511f780a302ed895400bba250eac235e927385d6967b |
File details
Details for the file dplot-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: dplot-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 375f5e053f8d71c7bbdd40e243d239517fab295b607d3c7e7826b7a7c05d0f7e |
|
MD5 | ae8fba53ffa66b7065fa140528444a4d |
|
BLAKE2b-256 | bcd72eff852aeee2956a7894becc9d0813aac7ad35c76b5648dd665fc08316ec |