Scripts
Put all scripts that generate plots or tex files here.
You can run all files at once using make scripts
Plots
matplotlib
For plots with matplotlib
:
- import
formulary.py
- use one of the preset figsizes
- save the image using the
export
function in theif __name__ == '__main__'
part
ase
- Atomic Simulation Environment
For plots with ase
:
- import
formulary.py
andutil.aseutil
- Use
util.aseutil.set_atom_color
to change the color of all used atoms to one in the colorscheme - export the render using the
export_atoms
function in theif __name__ == '__main__'
part. Pass one of the preset figsizes as size.
Colorscheme
To ensure a uniform look of the tex source and the python plots,
the tex and matplotlib colorschemes are both handled in formulary.py
.
Set the COLORSCHEME
variable to the desired colors.
Importing formulary.py
will automatically apply the colors to matplotlib,
and running it will generate util/colorscheme.tex
for LaTeX.