negrinho
sane_tikz
Python

Reconquer the canvas: beautiful Tikz figures without clunky Tikz code

Last updated Jul 2, 2026
427
Stars
37
Forks
0
Issues
+2
Stars/day
Attention Score
64
Language breakdown
No language data available.
Files click to expand
README

I recommend using VS Code with LaTeX Workshop for easily visualizing changes to figures. In preview mode, once you run the code to regenerate the tex file for the figure, the figure should update automatically in the pdf preview window. If sanetikz was useful for you to create figures for your paper, consider mentioning it in the acknowledgements and share it via an issue or email or on Twitter with the hashtag #sanetikz. See tutorial for a high-level description of the design decisions or dive right into the examples. Use pip install sanetikz to install from PyPi and git clone https://github.com/negrinho/sanetikz && cd sane_tikz && pip install -e . to install from the repo.

Examples

Check the examples:

  • segments: [[py]](https://github.com/negrinho/sanetikz/blob/master/examples/segments.py) [[tex]](https://github.com/negrinho/sanetikz/blob/master/examples/segments.tex) [[pdf]](https://github.com/negrinho/sane_tikz/blob/master/examples/segments.pdf)

  • flowchart: [[py]](https://github.com/negrinho/sanetikz/blob/master/examples/flowchart.py) [[tex]](https://github.com/negrinho/sanetikz/blob/master/examples/flowchart.tex) [[pdf]](https://github.com/negrinho/sane_tikz/blob/master/examples/flowchart.pdf)

  • pentagon: [[py]](https://github.com/negrinho/sanetikz/blob/master/examples/pentagon.py) [[tex]](https://github.com/negrinho/sanetikz/blob/master/examples/pentagon.tex) [[pdf]](https://github.com/negrinho/sane_tikz/blob/master/examples/pentagon.pdf)

  • boxes: [[py]](https://github.com/negrinho/sanetikz/blob/master/examples/boxes.py) [[tex]](https://github.com/negrinho/sanetikz/blob/master/examples/boxes.tex) [[pdf]](https://github.com/negrinho/sane_tikz/blob/master/examples/boxes.pdf)

  • lda: [[py]](https://github.com/negrinho/sanetikz/blob/master/examples/lda.py) [[tex]](https://github.com/negrinho/sanetikz/blob/master/examples/lda.tex) [[pdf]](https://github.com/negrinho/sane_tikz/blob/master/examples/lda.pdf)

  • tree: [[py]](https://github.com/negrinho/sanetikz/blob/master/examples/tree.py) [[tex]](https://github.com/negrinho/sanetikz/blob/master/examples/tree.tex) [[pdf]](https://github.com/negrinho/sane_tikz/blob/master/examples/tree.pdf)

  • transformer: [[py]](https://github.com/negrinho/sanetikz/blob/master/examples/transformer.py) [[tex]](https://github.com/negrinho/sanetikz/blob/master/examples/transformer.tex) [[pdf]](https://github.com/negrinho/sane_tikz/blob/master/examples/transformer.pdf)

  • xlnet: [[py]](https://github.com/negrinho/sanetikz/blob/master/examples/xlnet.py) [[tex]](https://github.com/negrinho/sanetikz/blob/master/examples/xlnet.tex) [[pdf]](https://github.com/negrinho/sane_tikz/blob/master/examples/xlnet.pdf)

  • deeparchitect: [[py]](https://github.com/negrinho/sanetikz/blob/master/examples/deeparchitect.py) [[tex]](https://github.com/negrinho/sanetikz/blob/master/examples/deeparchitect.tex) [[pdf]](https://github.com/negrinho/sanetikz/blob/master/examples/deep_architect.pdf)

Roadmap

  • Easy GIF generation
  • Multiple output formats (png, svg, ...)
  • 3D plotting
  • More 2D plotting primitives for common plots (bar, line, scatter, ...)
  • Slide deck creation (i.e., an alternative to Beamer)
🔗 More in this category

© 2026 GitRepoTrend · negrinho/sane_tikz · Updated daily from GitHub