A set of utilities for programmatically generating TikZ code.
- Conventions
- Naming conventions are according to PEP8.
- How to clean the source:
ruff .
pyright
mypy
isort .
pylint tikzify
- This macro is helpful for running examples:
function dm {
python "$1.py" $2 && pdflatex -shell-escape $1 && open $1.pdf
}
- The basal ganglia example can be run by doing
dm basal_ganglia
from the examples folder. It should produceexamples/basal_ganglia.pdf
, which shows all of the output, as well asexamples/figures/basal_ganglia-*.pdf
, which are the individual diagrams to be included. - A copy of the pdf <examples/basal_ganglia.pdf> is provided. It shows three programmatically-generated diagrams, with various sections highlighted.
- Neil Girdhar