https://github.com/adrienplacais/dst-util
A set of tools to plot TraceWin .dst, and reformat for pgfplots
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.7%) to scientific vocabulary
Repository
A set of tools to plot TraceWin .dst, and reformat for pgfplots
Basic Info
- Host: GitHub
- Owner: AdrienPlacais
- License: mit
- Language: Python
- Default Branch: master
- Size: 1.61 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
DST-util
This small library offers tool to plot density files produced by TraceWin. Density files are converted so that plotting them with TikZ/Pgfplot is easy.
Installation
- Navigate to the directory where the code should be stored and run:
git clone git@github.com:AdrienPlacais/DST-util.git - Navigate to
DST-utilfolder (where thisREADME.mdis located), create a dedicated Python environment, activate it. For me, it comes down to:python -m venv venv; source venv/bin/activate - Locally install the library:
and run:
pip install -e .
Now you should be able to run dst_util-gui.
If there is any problem, open an issue and I will answer as soon as possible.
Usage
The GUI should be straight forward. Two modes are provided: plot of simple distributions, or plot of distributions on top of acceptance.
Note that .dst binary files are not supported.
You should open your .dst with PlotWin and convert it to non-binary .txt format.
Distribution

Acceptance
You will need a file containing either the accepted particles, either the non-accepted particles.
The TraceWin documentation explains how to produce such files.
Once you have your accepted.dst or not_accepted.dst file, reopen it with PlotWin to save it as .txt.

You can provide accepted particles or non-accepted particles.
In the latter case, invert acceptance colors with the checkbox for clarity.

Integration in LaTeX documents with pgfplots
With the example TikZ file in the tikz folder, you can produce something like this.

Owner
- Login: AdrienPlacais
- Kind: user
- Repositories: 1
- Profile: https://github.com/AdrienPlacais
GitHub Events
Total
Last Year
Dependencies
- matplotlib ==3.8.4
- numpy ==2.0.0
- pandas ==2.2.2
- setuptools ==69.5.1
- matplotlib *
- numpy *
- pandas *
- setuptools *