I need to create schematics similar to the ones that can be created with draw.io or other similar software like dia, or MS Visio. However, I need to do that with a scripting language, preferably python.

Is there any python library to do that? It would be great if it also has support for latex formulas. Thanks in advance!


1 Answer 1


You could use the diagrams library for writing. For the latex notation, you could use matplotlib.

If you need something more abstract or generic, networkx might be what you need. A simpler approach might be to use the graphviz python library

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.