I think coming up with an appropriate stippling algorithm is part of what makes it art; different techniques make different textures. But here's an example that comes with full source and is not too complicated:
https://greweb.me/plots/236And another approach (from the makers of the AxiDraw) that's more dot-like: https://wiki.evilmadscientist.com/StippleGen