https://github.com/adrienplacais/dst-util

A set of tools to plot TraceWin .dst, and reformat for pgfplots

https://github.com/adrienplacais/dst-util

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
Last synced: 9 months ago · JSON representation

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
Created almost 2 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License

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

  1. Navigate to the directory where the code should be stored and run: git clone git@github.com:AdrienPlacais/DST-util.git
  2. Navigate to DST-util folder (where this README.md is located), create a dedicated Python environment, activate it. For me, it comes down to: python -m venv venv; source venv/bin/activate
  3. 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

distribution-screenshot

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. acceptance-tracewin-screenshot

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

Integration in LaTeX documents with pgfplots

With the example TikZ file in the tikz folder, you can produce something like this. acceptance-tikz

Owner

  • Login: AdrienPlacais
  • Kind: user

GitHub Events

Total
Last Year

Dependencies

requirements.txt pypi
  • matplotlib ==3.8.4
  • numpy ==2.0.0
  • pandas ==2.2.2
  • setuptools ==69.5.1
setup.py pypi
  • matplotlib *
  • numpy *
  • pandas *
  • setuptools *
pyproject.toml pypi