/Stark-map-tools

Tools for plotting Stark and Zeeman maps.

Primary LanguageJupyter NotebookBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Stark map tools

v0.0.1.dev.

Python tools for plotting Stark and Zeeman maps.

Install

Clone and install using setuptools.

git clone https://github.com/ad3ller/Stark-map-tools
cd Stark-map-tools
python setup.py install

Usage

>>> from smtools import sm_sort, lc_cmap
sm_sort(arr)
sort a Stark/ Zeeman map to preserve the state order through exact crossings.
lc_cmap(xvals, yvals, colors)
apply a colormap to matplotlib.pyplot.plot using LineCollections.

See notebooks for examples.