- Asymptote
- Eukleides
- TikZ
- METAPOST
- Nodebox
- OpenSCAD --- see the book series: Geometry: https://www.goodreads.com/book/show/58059196-make Trigonometry: https://www.goodreads.com/book/show/123127774-make Calculus: https://www.goodreads.com/book/show/61739368-make
of greater interest (and for the Pythonistas there is: https://pythonscad.org/ ) --- I'd be interested to know of other tools in this space.
That said, most folks just use Inkscape (though at least it has scripting): https://inkscape.org/~pakin/%E2%98%85simple-inkscape-scripti...
Maybe Graphite will spur interest?