TikZ Examples
This is awesome!
It is widely known that you can use TeX in Sphinx documentation to create mathematical formulas. However, it is also possible to create excellent vector graphics directly in Sphinx! This means you no longer need to create your vector illustrations in external software, export them to SVG or PNG, include them with the rest of the assets in the documentation system, etc. Let Sphinx do the work for you.
The main advantages are:
Out-of-the-box support for PGF/TikZ via the Sphinx extension sphinxcontrib-tikz.
Need to modify an illustration? No problem, just edit its code directly in the documentation text and rebuild.
Plaintext-based system: easy to control revisions via your favorite VCS.
Integrates easily and flawlessly with Read The Docs.
Based on instructions from sphinxcontrib-tikz extension and a Sphinx primer by Li-Pro.Net.
Inline Examples
Basic example:
The obligatory ubiquitous example, with caption:
An example inline role:
Examples of TikZ drawings loaded from files
Classical physics: a free-body diagram
Control systems: a basic diagram
Drawing demo by author of the package tikz-3dplot
[source]
3D Cube 1 (plain TikZ)
3D Cube 2 (drawn using tikz-3dplot
)
Spherical Polar coordinate system (drawn using tikz-3dplot
)
Spherical Elevation coordinate system (drawn using tikz-3dplot
)