TikZ chemistry examples
Contents
Six figures from Janosh Riebesell’s diagrams collection, on molecules and computational materials science: a ball-and-stick organic molecule, Wyckoff positions, a convex hull of stability, a Sabatier principle volcano plot, the Kohn–Sham self-consistency cycle and the choices made in a DFT calculation. The Kohn–Sham cycle and the DFT choices are boxes and arrows placed with the positioning library, the molecule’s atoms are shaded spheres (ball color), and the convex hull and the volcano plot are drawn on plain TikZ axes rather than with pgfplots.
For skeletal formulas and reaction schemes the usual tool is the chemfig package, which draws molecules with TikZ; the TikZ editor has chemfig loaded.
Molecules & structures

Ball-and-stick organic molecule
MIT licence, © Janosh Riebesell and contributors · janosh/diagrams
Open in the TikZ editor
Wyckoff positions
MIT licence, © Janosh Riebesell and contributors · janosh/diagrams
Open in the TikZ editor
Electronic structure & catalysis

Convex hull of stability
MIT licence, © Janosh Riebesell and contributors · janosh/diagrams
Open in the TikZ editor
Kohn–Sham self-consistency cycle
MIT licence, © Janosh Riebesell and contributors · janosh/diagrams
Open in the TikZ editor
Sabatier principle (volcano plot)
MIT licence, © Janosh Riebesell and contributors · janosh/diagrams
Open in the TikZ editor
Choices in a DFT calculation
MIT licence, © Janosh Riebesell and contributors · janosh/diagrams
Open in the TikZ editor
Using these figures
Every figure keeps its own licence: MIT or CC0 1.0, both of which allow use, change and sharing, commercial use included. The MIT licence asks that its copyright and permission notice go with copies of the code, so each figure’s code starts with its source, author and licence; keep those lines when you reuse it. The full licence texts are on the sources and licences page.
“Open in the TikZ editor” loads the figure’s complete document into the free TikZ editor, where it is typeset with TeX Live 2026 and you can change it and download a PNG. To compile it on your own computer, save the code as a .tex file and run pdfLaTeX (or the engine the tile names) on it; LabCanvas changed the files only where needed to make each one compile on its own, as its first lines say.