janosh/diagrams

Diagrams of concepts in physics/chemistry/ML

Typst

702

301 commits

updated Oct 15, 2026

See the code

README

121 Scientific Diagrams

Illustrating concepts in physics, chemistry and machine learning.

130 with Typst 78 with LaTeX Site Pull Requests Welcome DOI

janosh.github.io/diagrams allows searching, sorting, opening in Overleaf and downloading figures (PDF/SVG/PNG) from this collection.

Have a TikZ/CeTZ diagram you'd like to share? Submit a PR with a .tex or .typ and a corresponding metadata .yml file in the assets/ directory and add yourself to the citation.cff file.

Title-row icons: References references · Creator creator · Original source original source.

                                            
2d Convolution  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: 2d ConvolutionAmplitude vs Frequency Modulation  Typst Reference: mgcsweek v2.0 Reference: Amplitude Modulation
2d ConvolutionAmplitude vs Frequency Modulation
Angular Momentum Quantization  Typst Creator: Izaak Neutelings Reference: quantization of orbital angular momentumAtomistic Simulation Methods  Typst
Angular Momentum QuantizationAtomistic Simulation Methods
Autoencoder Architectures  Typst Reference: Auto-Encoding Variational Bayes Reference: Denoising Variational AutoencoderBall Tree  Typst Reference: Ball Tree
Autoencoder ArchitecturesBall Tree
Basis + Lattice  LaTeX Typst Creator: Stefan BringuierBloch Sphere  LaTeX Typst Reference: qubit Reference: https://janosh.dev/physics/statistical-physics
Basis + LatticeBloch Sphere
Bose Einstein Distribution 3d  LaTeX Typst Reference: arxiv:1712.09863Branch and Bound  Typst Reference: LP relaxation
Bose Einstein Distribution 3dBranch and Bound
Branch Cuts 1  LaTeX Typst Reference: arxiv:1712.09863Branch Cuts 2  LaTeX Typst
Branch Cuts 1Branch Cuts 2
Burrows-Wheeler Transform  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Burrows-Wheeler TransformChain Homology  Typst Reference: homology group
Burrows-Wheeler TransformChain Homology
Change of Variables  Typst Creator: Juan Falgueras-Cano Reference: https://youtu.be/i7LjDvsLWCg?t=250Complex Sign Function  Typst
Change of VariablesComplex Sign Function
Convex Hull of Stability  LaTeX Typst Reference: Bartel (2022)Convexity and Jensen’s Inequality  Typst Reference: Convex
Convex Hull of StabilityConvexity and Jensen’s Inequality
Critical Temperature  LaTeX TypstCycleGAN  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: CycleGAN
Critical TemperatureCycleGAN
Cylinder to Plane  LaTeX Typst Reference: radial quantizationDe Bruijn Graph  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: De Bruijn Graph
Cylinder to PlaneDe Bruijn Graph
Deep Belief Network  Typst Creator: Petar Veličković Original source: Petar Veličković: Deep Belief NetworkDFT Choices  LaTeX Typst
Deep Belief NetworkDFT Choices
DFT Jacob's Ladder  Typst Reference: Jacob's ladder of density functional approximations for the exchange-correlation energyDisk to Plane  LaTeX Typst Reference: conformal field theory
DFT Jacob's LadderDisk to Plane
Dropout  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: DropoutEinstein Crystal  Typst Reference: Einstein model of a solid Reference: Zur Theorie der spezifischen Wärmen
DropoutEinstein Crystal
Ergodic  Typst Reference: ergodic theory and statistical mechanicsEuler Angles  LaTeX Typst Creator: Dorian Depriester Original source: Dorian Depriester: Euler Angles
ErgodicEuler Angles
Ferroelectric Response  LaTeX Typst Creator: Stefan Bringuier Reference: ferroelectric responseFeynman Building Blocks  Typst
Ferroelectric ResponseFeynman Building Blocks
Feynman Diagram Loop  LaTeX TypstFeynman Diagram One Point  LaTeX Typst
Feynman Diagram LoopFeynman Diagram One Point
Feynman Diagram Propagator Loop  LaTeX TypstFeynman Diagrams Loop Regulator  LaTeX Typst
Feynman Diagram Propagator LoopFeynman Diagrams Loop Regulator
Fractal Atlas  TypstGas Pressure on Wall  LaTeX Typst
Fractal AtlasGas Pressure on Wall
Generative Adversarial Network  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Generative Adversarial NetworkGeometric Bayes  LaTeX Typst Reference: 3blue1brown
Generative Adversarial NetworkGeometric Bayes
Gibbs Free Energy  TypstGPU Batching  Typst
Gibbs Free EnergyGPU Batching
Grand Canonical Occupation Fluctuations  LaTeX Typst Reference: https://janosh.dev/physics/statistical-physicsGraph Isomorphism  LaTeX Typst Reference: isomorphic
Grand Canonical Occupation FluctuationsGraph Isomorphism
Graph Neural Networks  Typst Reference: Graph Attention Networks Reference: Graph Attention NetworksGravitons  LaTeX Typst
Graph Neural NetworksGravitons
Gun Tackle  Typst Creator: Clemens Koza Original source: Clemens Koza: Gun TackleH2 Bond Breaking  Typst
Gun TackleH2 Bond Breaking
Hamiltonian Graph  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Hamiltonian GraphHigh Entropy Alloy  LaTeX Typst Reference: Wiki article
Hamiltonian GraphHigh Entropy Alloy
How Atoms Become Energy Bands  Typst Reference: tight-binding modelIsotherms  LaTeX Typst Reference: ideal gas law
How Atoms Become Energy BandsIsotherms
k-Nearest Neighbors  Typst Reference: https://link.springer.com/article/10.1007/s10668-023-03800-1/figures/5 Reference: K-Nearest Neighborsk-Space  LaTeX Typst
k-Nearest Neighborsk-Space
Kohn Sham Cycle  LaTeX TypstLight  Typst Reference: Maxwell's equations
Kohn Sham CycleLight
Long Short-Term Memory  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Long Short-Term MemoryM-Theory  LaTeX Typst Reference: Edward Witten's formulation of M-Theory in 1995 Reference: Carroll's excellent post
Long Short-Term MemoryM-Theory
MADE  LaTeX Typst Reference: arxiv:1502.03509Magnetism Types  Typst Reference: Altermagnetism
MADEMagnetism Types
Materials Informatics  Typst Reference: this Computer Physics Communications paper Reference: Coulomb-matrix definitionMatsubara Contours  Typst Reference: thermal field theory contour constructions
Materials InformaticsMatsubara Contours
Maximum Flow Problem  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Maximum Flow ProblemMaxwell Boltzmann Distribution  LaTeX Typst
Maximum Flow ProblemMaxwell Boltzmann Distribution
ML Activations  Typst Reference: Activation functionsMOSFET  LaTeX Typst Reference: metal-oxide-semiconductor field-effect transistor
ML ActivationsMOSFET
Multilayer Perceptron  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Multilayer PerceptronNMOSFET Amplifier Circuit  Typst Creator: Kreijstal
Multilayer PerceptronNMOSFET Amplifier Circuit
Normalizing Flows  Typst Reference: Real NVP Reference: Masked Autoregressive FlowOperator Orderings  LaTeX Typst
Normalizing FlowsOperator Orderings
Organic Molecule  LaTeX Typst Reference: Beta-methylamino-DL-alanine - C₄H₁₀N₂O₂ Reference: https://tex.stackexchange.com/q/453740Otto Cycle  LaTeX Typst Reference: Otto cycle
Organic MoleculeOtto Cycle
Particle Statistics  TypstPeriodic Table  LaTeX Typst Original source: Ivan Griffin: Periodic Table Reference: periodic table of elements
Particle StatisticsPeriodic Table
Plane to Torus  LaTeX TypstPlate Capacitor  LaTeX Typst Original source: Izaak Neutelings: Plate Capacitor
Plane to TorusPlate Capacitor
Propagator Fluctuations  LaTeX TypstQFT Propagator Poles  LaTeX Typst
Propagator FluctuationsQFT Propagator Poles
QFT Propagators  LaTeX TypstCost vs Accuracy in Quantum Mechanical Simulations  Typst Reference: Psi4 FNOCC methods Reference: conventional cubic DFT and linear-scaling alternatives
QFT PropagatorsCost vs Accuracy in Quantum Mechanical Simulations
Quantum Harmonic Oscillator  Typst Reference: MIT harmonic oscillator in thermal equilibriumRandom Forest  LaTeX Typst Reference: Breiman 2001
Quantum Harmonic OscillatorRandom Forest
Regular vs Bayes NN  LaTeX Typst Reference: Bayesian neural networksRegulated and Unregulated Propagators  Typst
Regular vs Bayes NNRegulated and Unregulated Propagators
Reinforcement Learning Greedy Policy  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Reinforcement Learning Greedy PolicyRG Flow in Theory Space  LaTeX Typst Reference: Exact evolution equation for the effective potential
Reinforcement Learning Greedy PolicyRG Flow in Theory Space
ROC Curve  Typst Reference: Receiver Operating Characteristic curveRoost Update  LaTeX Typst Reference: arxiv:1910.00617
ROC CurveRoost Update
Sabatier Principle  LaTeX Typst Reference: From the Sabatier principle to a predictive theory of transition-metal heterogeneous catalysisSaddle Point  LaTeX Typst
Sabatier PrincipleSaddle Point
Scattering Detailed Balance  LaTeX TypstSeebeck Effect  LaTeX Typst
Scattering Detailed BalanceSeebeck Effect
Self Attention  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Self AttentionSemi-supervised Learning  Typst Creator: Petar Veličković Original source: Petar Veličković: Semi-supervised Learning
Self AttentionSemi-supervised Learning
Shortest Path in Weighted Graph  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Shortest Path in Weighted GraphSierpinski Triangle  Typst Reference: Construction of Sierpiński Triangles up to the Fifth Order
Shortest Path in Weighted GraphSierpinski Triangle
Signal Sampling  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Signal SamplingSingle-head attention  LaTeX Typst Creator: Francois Fleuret Original source: Francois Fleuret: Single-head attention
Signal SamplingSingle-head attention
Skip Connection  LaTeX Typst Reference: ResNet paperSpherical Volume Element  Typst
Skip ConnectionSpherical Volume Element
Spontaneous Magnetization  LaTeX TypstString Worldsheet Topologies  Typst Reference: David Tong, String Theory, section 6
Spontaneous MagnetizationString Worldsheet Topologies
Sublattice Points  Typst Original source: Kohei Shinohara: Crystal Symmetry Primer Source repository: Kohei Shinohara: Crystal Symmetry PrimerSupervised Learning Setup  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Supervised Learning Setup
Sublattice PointsSupervised Learning Setup
Symmetry Breaking  TypstThermodynamic Ensemble transforms  LaTeX Typst
Symmetry BreakingThermodynamic Ensemble transforms
Thermodynamic Potentials Venn Diagram  Typst Reference: R. K. P. Zia, Edward F. Redish, and Susan R. McKay, "Thermodynamic Venn diagrams: Sorting out forces, fluxes, and Legendre transforms," American Journal of Physics 79, 950 (2011). DOI: 10.1119/1.3599177θ-β-M Diagram  Typst Creator: Philipp Dobler Original source: Philipp Dobler: θ-β-M Diagram
Thermodynamic Potentials Venn Diagramθ-β-M Diagram
Thomson Scattering  LaTeX Typst Creator: Stefan BringuierTimed Event Graph  Typst Creator: Kreijstal Reference: Petri net
Thomson ScatteringTimed Event Graph
Tori  LaTeX TypstTorus  LaTeX Typst
ToriTorus
Torus Fundamental Domain  LaTeX TypstTrain-Test Split  Typst Reference: train-test split
Torus Fundamental DomainTrain-Test Split
Wannierization and Wannier Centers  Typst Reference: Maximally localized Wannier functions: Theory and applications Reference: Maximally localized generalized Wannier functions for composite energy bandsWeb Graph  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Web Graph
Wannierization and Wannier CentersWeb Graph
Wetterich Equation  LaTeX TypstWhich Band Gap Do You Mean?  Typst Reference: derivative discontinuity
Wetterich EquationWhich Band Gap Do You Mean?
Wyckoff Positions  LaTeX Typst Original source: Wyckoff Positions Reference: "Wyckoff Set Regression for Materials Discovery"XC Functional  Typst
Wyckoff PositionsXC Functional
zT vs n  Typst Reference: α–ln σ plot as a thermoelectric material performance indicator 
zT vs n 

Scripts

Export diagrams as PDF, SVG, PNG, and AVIF:

uv run --no-project --with pyyaml scripts/render_typst.py assets/bloch-sphere/bloch-sphere.typ
uv run --no-project --with pyyaml scripts/render_tikz.py assets/bloch-sphere/bloch-sphere.tex

Requires Typst or LaTeX (latexmk), ImageMagick, and ZopfliPNG. TikZ also needs Ghostscript; pdf2svg enables SVG export. Set preserve_colors: true in metadata to disable dark-mode recoloring.

Python and metadata checks

uv run --no-project --python 3.14 --with pytest --with pyyaml pytest -q
prek run --all-files

Rendering tests need the tools above and the artwork's fonts. Metadata requires title, description, and unique tags.

Site visual checks

cd site
pnpm exec playwright install --only-shell chromium
pnpm build
pnpm test:visual

For intentional visual changes, run pnpm test:visual:update and review the PNG diffs.

📖   How to cite

You can cite the Zenodo record using the following BibTeX entry:

@software{riebesell_diagrams_2020,
  title = {Collection of scientific diagrams},
  author = {Riebesell, Janosh and Bringuier, Stefan},
  date = {2020-08-09},
  year = {2020},
  doi = {10.5281/zenodo.7486911},
  url = {https://github.com/janosh/diagrams},
  note = {10.5281/zenodo.7486911 - https://github.com/janosh/diagrams},
  version = {0.2.0},
  urldate = {2023-01-01}, % optional, replace with your date of access
}
cetz
chemistry
latex
machine-learning
physics
scientific-visualization
tikz
tikz-gallery
typst

janosh/diagrams

Diagrams of concepts in physics/chemistry/ML

Typst

702

301 commits

updated Oct 15, 2026

See the code

README

121 Scientific Diagrams

Illustrating concepts in physics, chemistry and machine learning.

130 with Typst 78 with LaTeX Site Pull Requests Welcome DOI

janosh.github.io/diagrams allows searching, sorting, opening in Overleaf and downloading figures (PDF/SVG/PNG) from this collection.

Have a TikZ/CeTZ diagram you'd like to share? Submit a PR with a .tex or .typ and a corresponding metadata .yml file in the assets/ directory and add yourself to the citation.cff file.

Title-row icons: References references · Creator creator · Original source original source.

                                            
2d Convolution  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: 2d ConvolutionAmplitude vs Frequency Modulation  Typst Reference: mgcsweek v2.0 Reference: Amplitude Modulation
2d ConvolutionAmplitude vs Frequency Modulation
Angular Momentum Quantization  Typst Creator: Izaak Neutelings Reference: quantization of orbital angular momentumAtomistic Simulation Methods  Typst
Angular Momentum QuantizationAtomistic Simulation Methods
Autoencoder Architectures  Typst Reference: Auto-Encoding Variational Bayes Reference: Denoising Variational AutoencoderBall Tree  Typst Reference: Ball Tree
Autoencoder ArchitecturesBall Tree
Basis + Lattice  LaTeX Typst Creator: Stefan BringuierBloch Sphere  LaTeX Typst Reference: qubit Reference: https://janosh.dev/physics/statistical-physics
Basis + LatticeBloch Sphere
Bose Einstein Distribution 3d  LaTeX Typst Reference: arxiv:1712.09863Branch and Bound  Typst Reference: LP relaxation
Bose Einstein Distribution 3dBranch and Bound
Branch Cuts 1  LaTeX Typst Reference: arxiv:1712.09863Branch Cuts 2  LaTeX Typst
Branch Cuts 1Branch Cuts 2
Burrows-Wheeler Transform  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Burrows-Wheeler TransformChain Homology  Typst Reference: homology group
Burrows-Wheeler TransformChain Homology
Change of Variables  Typst Creator: Juan Falgueras-Cano Reference: https://youtu.be/i7LjDvsLWCg?t=250Complex Sign Function  Typst
Change of VariablesComplex Sign Function
Convex Hull of Stability  LaTeX Typst Reference: Bartel (2022)Convexity and Jensen’s Inequality  Typst Reference: Convex
Convex Hull of StabilityConvexity and Jensen’s Inequality
Critical Temperature  LaTeX TypstCycleGAN  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: CycleGAN
Critical TemperatureCycleGAN
Cylinder to Plane  LaTeX Typst Reference: radial quantizationDe Bruijn Graph  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: De Bruijn Graph
Cylinder to PlaneDe Bruijn Graph
Deep Belief Network  Typst Creator: Petar Veličković Original source: Petar Veličković: Deep Belief NetworkDFT Choices  LaTeX Typst
Deep Belief NetworkDFT Choices
DFT Jacob's Ladder  Typst Reference: Jacob's ladder of density functional approximations for the exchange-correlation energyDisk to Plane  LaTeX Typst Reference: conformal field theory
DFT Jacob's LadderDisk to Plane
Dropout  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: DropoutEinstein Crystal  Typst Reference: Einstein model of a solid Reference: Zur Theorie der spezifischen Wärmen
DropoutEinstein Crystal
Ergodic  Typst Reference: ergodic theory and statistical mechanicsEuler Angles  LaTeX Typst Creator: Dorian Depriester Original source: Dorian Depriester: Euler Angles
ErgodicEuler Angles
Ferroelectric Response  LaTeX Typst Creator: Stefan Bringuier Reference: ferroelectric responseFeynman Building Blocks  Typst
Ferroelectric ResponseFeynman Building Blocks
Feynman Diagram Loop  LaTeX TypstFeynman Diagram One Point  LaTeX Typst
Feynman Diagram LoopFeynman Diagram One Point
Feynman Diagram Propagator Loop  LaTeX TypstFeynman Diagrams Loop Regulator  LaTeX Typst
Feynman Diagram Propagator LoopFeynman Diagrams Loop Regulator
Fractal Atlas  TypstGas Pressure on Wall  LaTeX Typst
Fractal AtlasGas Pressure on Wall
Generative Adversarial Network  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Generative Adversarial NetworkGeometric Bayes  LaTeX Typst Reference: 3blue1brown
Generative Adversarial NetworkGeometric Bayes
Gibbs Free Energy  TypstGPU Batching  Typst
Gibbs Free EnergyGPU Batching
Grand Canonical Occupation Fluctuations  LaTeX Typst Reference: https://janosh.dev/physics/statistical-physicsGraph Isomorphism  LaTeX Typst Reference: isomorphic
Grand Canonical Occupation FluctuationsGraph Isomorphism
Graph Neural Networks  Typst Reference: Graph Attention Networks Reference: Graph Attention NetworksGravitons  LaTeX Typst
Graph Neural NetworksGravitons
Gun Tackle  Typst Creator: Clemens Koza Original source: Clemens Koza: Gun TackleH2 Bond Breaking  Typst
Gun TackleH2 Bond Breaking
Hamiltonian Graph  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Hamiltonian GraphHigh Entropy Alloy  LaTeX Typst Reference: Wiki article
Hamiltonian GraphHigh Entropy Alloy
How Atoms Become Energy Bands  Typst Reference: tight-binding modelIsotherms  LaTeX Typst Reference: ideal gas law
How Atoms Become Energy BandsIsotherms
k-Nearest Neighbors  Typst Reference: https://link.springer.com/article/10.1007/s10668-023-03800-1/figures/5 Reference: K-Nearest Neighborsk-Space  LaTeX Typst
k-Nearest Neighborsk-Space
Kohn Sham Cycle  LaTeX TypstLight  Typst Reference: Maxwell's equations
Kohn Sham CycleLight
Long Short-Term Memory  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Long Short-Term MemoryM-Theory  LaTeX Typst Reference: Edward Witten's formulation of M-Theory in 1995 Reference: Carroll's excellent post
Long Short-Term MemoryM-Theory
MADE  LaTeX Typst Reference: arxiv:1502.03509Magnetism Types  Typst Reference: Altermagnetism
MADEMagnetism Types
Materials Informatics  Typst Reference: this Computer Physics Communications paper Reference: Coulomb-matrix definitionMatsubara Contours  Typst Reference: thermal field theory contour constructions
Materials InformaticsMatsubara Contours
Maximum Flow Problem  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Maximum Flow ProblemMaxwell Boltzmann Distribution  LaTeX Typst
Maximum Flow ProblemMaxwell Boltzmann Distribution
ML Activations  Typst Reference: Activation functionsMOSFET  LaTeX Typst Reference: metal-oxide-semiconductor field-effect transistor
ML ActivationsMOSFET
Multilayer Perceptron  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Multilayer PerceptronNMOSFET Amplifier Circuit  Typst Creator: Kreijstal
Multilayer PerceptronNMOSFET Amplifier Circuit
Normalizing Flows  Typst Reference: Real NVP Reference: Masked Autoregressive FlowOperator Orderings  LaTeX Typst
Normalizing FlowsOperator Orderings
Organic Molecule  LaTeX Typst Reference: Beta-methylamino-DL-alanine - C₄H₁₀N₂O₂ Reference: https://tex.stackexchange.com/q/453740Otto Cycle  LaTeX Typst Reference: Otto cycle
Organic MoleculeOtto Cycle
Particle Statistics  TypstPeriodic Table  LaTeX Typst Original source: Ivan Griffin: Periodic Table Reference: periodic table of elements
Particle StatisticsPeriodic Table
Plane to Torus  LaTeX TypstPlate Capacitor  LaTeX Typst Original source: Izaak Neutelings: Plate Capacitor
Plane to TorusPlate Capacitor
Propagator Fluctuations  LaTeX TypstQFT Propagator Poles  LaTeX Typst
Propagator FluctuationsQFT Propagator Poles
QFT Propagators  LaTeX TypstCost vs Accuracy in Quantum Mechanical Simulations  Typst Reference: Psi4 FNOCC methods Reference: conventional cubic DFT and linear-scaling alternatives
QFT PropagatorsCost vs Accuracy in Quantum Mechanical Simulations
Quantum Harmonic Oscillator  Typst Reference: MIT harmonic oscillator in thermal equilibriumRandom Forest  LaTeX Typst Reference: Breiman 2001
Quantum Harmonic OscillatorRandom Forest
Regular vs Bayes NN  LaTeX Typst Reference: Bayesian neural networksRegulated and Unregulated Propagators  Typst
Regular vs Bayes NNRegulated and Unregulated Propagators
Reinforcement Learning Greedy Policy  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Reinforcement Learning Greedy PolicyRG Flow in Theory Space  LaTeX Typst Reference: Exact evolution equation for the effective potential
Reinforcement Learning Greedy PolicyRG Flow in Theory Space
ROC Curve  Typst Reference: Receiver Operating Characteristic curveRoost Update  LaTeX Typst Reference: arxiv:1910.00617
ROC CurveRoost Update
Sabatier Principle  LaTeX Typst Reference: From the Sabatier principle to a predictive theory of transition-metal heterogeneous catalysisSaddle Point  LaTeX Typst
Sabatier PrincipleSaddle Point
Scattering Detailed Balance  LaTeX TypstSeebeck Effect  LaTeX Typst
Scattering Detailed BalanceSeebeck Effect
Self Attention  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Self AttentionSemi-supervised Learning  Typst Creator: Petar Veličković Original source: Petar Veličković: Semi-supervised Learning
Self AttentionSemi-supervised Learning
Shortest Path in Weighted Graph  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Shortest Path in Weighted GraphSierpinski Triangle  Typst Reference: Construction of Sierpiński Triangles up to the Fifth Order
Shortest Path in Weighted GraphSierpinski Triangle
Signal Sampling  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Signal SamplingSingle-head attention  LaTeX Typst Creator: Francois Fleuret Original source: Francois Fleuret: Single-head attention
Signal SamplingSingle-head attention
Skip Connection  LaTeX Typst Reference: ResNet paperSpherical Volume Element  Typst
Skip ConnectionSpherical Volume Element
Spontaneous Magnetization  LaTeX TypstString Worldsheet Topologies  Typst Reference: David Tong, String Theory, section 6
Spontaneous MagnetizationString Worldsheet Topologies
Sublattice Points  Typst Original source: Kohei Shinohara: Crystal Symmetry Primer Source repository: Kohei Shinohara: Crystal Symmetry PrimerSupervised Learning Setup  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Supervised Learning Setup
Sublattice PointsSupervised Learning Setup
Symmetry Breaking  TypstThermodynamic Ensemble transforms  LaTeX Typst
Symmetry BreakingThermodynamic Ensemble transforms
Thermodynamic Potentials Venn Diagram  Typst Reference: R. K. P. Zia, Edward F. Redish, and Susan R. McKay, "Thermodynamic Venn diagrams: Sorting out forces, fluxes, and Legendre transforms," American Journal of Physics 79, 950 (2011). DOI: 10.1119/1.3599177θ-β-M Diagram  Typst Creator: Philipp Dobler Original source: Philipp Dobler: θ-β-M Diagram
Thermodynamic Potentials Venn Diagramθ-β-M Diagram
Thomson Scattering  LaTeX Typst Creator: Stefan BringuierTimed Event Graph  Typst Creator: Kreijstal Reference: Petri net
Thomson ScatteringTimed Event Graph
Tori  LaTeX TypstTorus  LaTeX Typst
ToriTorus
Torus Fundamental Domain  LaTeX TypstTrain-Test Split  Typst Reference: train-test split
Torus Fundamental DomainTrain-Test Split
Wannierization and Wannier Centers  Typst Reference: Maximally localized Wannier functions: Theory and applications Reference: Maximally localized generalized Wannier functions for composite energy bandsWeb Graph  LaTeX Typst Creator: Petar Veličković Original source: Petar Veličković: Web Graph
Wannierization and Wannier CentersWeb Graph
Wetterich Equation  LaTeX TypstWhich Band Gap Do You Mean?  Typst Reference: derivative discontinuity
Wetterich EquationWhich Band Gap Do You Mean?
Wyckoff Positions  LaTeX Typst Original source: Wyckoff Positions Reference: "Wyckoff Set Regression for Materials Discovery"XC Functional  Typst
Wyckoff PositionsXC Functional
zT vs n  Typst Reference: α–ln σ plot as a thermoelectric material performance indicator 
zT vs n 

Scripts

Export diagrams as PDF, SVG, PNG, and AVIF:

uv run --no-project --with pyyaml scripts/render_typst.py assets/bloch-sphere/bloch-sphere.typ
uv run --no-project --with pyyaml scripts/render_tikz.py assets/bloch-sphere/bloch-sphere.tex

Requires Typst or LaTeX (latexmk), ImageMagick, and ZopfliPNG. TikZ also needs Ghostscript; pdf2svg enables SVG export. Set preserve_colors: true in metadata to disable dark-mode recoloring.

Python and metadata checks

uv run --no-project --python 3.14 --with pytest --with pyyaml pytest -q
prek run --all-files

Rendering tests need the tools above and the artwork's fonts. Metadata requires title, description, and unique tags.

Site visual checks

cd site
pnpm exec playwright install --only-shell chromium
pnpm build
pnpm test:visual

For intentional visual changes, run pnpm test:visual:update and review the PNG diffs.

📖   How to cite

You can cite the Zenodo record using the following BibTeX entry:

@software{riebesell_diagrams_2020,
  title = {Collection of scientific diagrams},
  author = {Riebesell, Janosh and Bringuier, Stefan},
  date = {2020-08-09},
  year = {2020},
  doi = {10.5281/zenodo.7486911},
  url = {https://github.com/janosh/diagrams},
  note = {10.5281/zenodo.7486911 - https://github.com/janosh/diagrams},
  version = {0.2.0},
  urldate = {2023-01-01}, % optional, replace with your date of access
}
cetz
chemistry
latex
machine-learning
physics
scientific-visualization
tikz
tikz-gallery
typst

Significant stargazers

zachcp

83 followers · starred Jul 2026

Ethan Brierley

101 followers · starred Apr 2025

Andrew Voynov

23 followers · starred Aug 2025

Gab Fontes

560 followers · starred Nov 2025