https://github.com/janosh/diagrams
Diagrams of concepts in physics/chemistry/ML
https://github.com/janosh/diagrams
cetz chemistry latex machine-learning physics scientific-visualization tikz tikz-gallery typst
Last synced: 2 days ago
JSON representation
Diagrams of concepts in physics/chemistry/ML
- Host: GitHub
- URL: https://github.com/janosh/diagrams
- Owner: janosh
- License: mit
- Created: 2020-08-09T11:07:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-09T21:21:02.000Z (5 days ago)
- Last Synced: 2025-04-12T09:28:46.872Z (2 days ago)
- Topics: cetz, chemistry, latex, machine-learning, physics, scientific-visualization, tikz, tikz-gallery, typst
- Language: Typst
- Homepage: https://janosh.github.io/diagrams
- Size: 19.6 MB
- Stars: 276
- Watchers: 7
- Forks: 35
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
- Citation: citation.cff
Awesome Lists containing this project
- awesome-sveltekit - [code
README
120 Scientific Diagrams
Illustrating concepts in physics, chemistry and machine learning.
[](https://typst.app)
[](https://latex-project.org)
[](https://github.com/janosh/diagrams/actions/workflows/gh-pages.yml)
[](https://github.com/janosh/diagrams/pulls)
[](https://zenodo.org/badge/latestdoi/286220365)[janosh.github.io/diagrams](https://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](https://github.com/janosh/diagrams/pulls) with a `.tex` or `.typ` and a corresponding metadata `.yml` file in the `assets/` directory and add yourself to the [`citation.cff`](citation.cff) file.
| | |
| :---: | :---: |
| [`2d-convolution`](https://janosh.github.io/diagrams/2d-convolution) [![LaTeX][latex-logo]](assets/2d-convolution/2d-convolution.tex) [![Typst][typst-logo]](assets/2d-convolution/2d-convolution.typ) | [`autoencoder`](https://janosh.github.io/diagrams/autoencoder) [![LaTeX][latex-logo]](assets/autoencoder/autoencoder.tex) [![Typst][typst-logo]](assets/autoencoder/autoencoder.typ) |
|  |  |
| [`basis-plus-lattice`](https://janosh.github.io/diagrams/basis-plus-lattice) [![LaTeX][latex-logo]](assets/basis-plus-lattice/basis-plus-lattice.tex) [![Typst][typst-logo]](assets/basis-plus-lattice/basis-plus-lattice.typ) | [`bloch-sphere`](https://janosh.github.io/diagrams/bloch-sphere) [![LaTeX][latex-logo]](assets/bloch-sphere/bloch-sphere.tex) [![Typst][typst-logo]](assets/bloch-sphere/bloch-sphere.typ) |
|  |  |
| [`bose-einstein-distribution-3d`](https://janosh.github.io/diagrams/bose-einstein-distribution-3d) [![LaTeX][latex-logo]](assets/bose-einstein-distribution-3d/bose-einstein-distribution-3d.tex) | [`bose-einstein-distribution`](https://janosh.github.io/diagrams/bose-einstein-distribution) [![LaTeX][latex-logo]](assets/bose-einstein-distribution/bose-einstein-distribution.tex) [![Typst][typst-logo]](assets/bose-einstein-distribution/bose-einstein-distribution.typ) |
|  |  |
| [`branch-and-bound`](https://janosh.github.io/diagrams/branch-and-bound) [![LaTeX][latex-logo]](assets/branch-and-bound/branch-and-bound.tex) [![Typst][typst-logo]](assets/branch-and-bound/branch-and-bound.typ) | [`branch-cuts-1`](https://janosh.github.io/diagrams/branch-cuts-1) [![LaTeX][latex-logo]](assets/branch-cuts-1/branch-cuts-1.tex) [![Typst][typst-logo]](assets/branch-cuts-1/branch-cuts-1.typ) |
|  |  |
| [`branch-cuts-2`](https://janosh.github.io/diagrams/branch-cuts-2) [![LaTeX][latex-logo]](assets/branch-cuts-2/branch-cuts-2.tex) [![Typst][typst-logo]](assets/branch-cuts-2/branch-cuts-2.typ) | [`change-of-variables`](https://janosh.github.io/diagrams/change-of-variables) [![LaTeX][latex-logo]](assets/change-of-variables/change-of-variables.tex) [![Typst][typst-logo]](assets/change-of-variables/change-of-variables.typ) |
|  |  |
| [`closed-string-topologies`](https://janosh.github.io/diagrams/closed-string-topologies) [![LaTeX][latex-logo]](assets/closed-string-topologies/closed-string-topologies.tex) | [`complex-sign-function`](https://janosh.github.io/diagrams/complex-sign-function) [![LaTeX][latex-logo]](assets/complex-sign-function/complex-sign-function.tex) [![Typst][typst-logo]](assets/complex-sign-function/complex-sign-function.typ) |
|  |  |
| [`complex-sign-plane`](https://janosh.github.io/diagrams/complex-sign-plane) [![LaTeX][latex-logo]](assets/complex-sign-plane/complex-sign-plane.tex) [![Typst][typst-logo]](assets/complex-sign-plane/complex-sign-plane.typ) | [`concave-functions`](https://janosh.github.io/diagrams/concave-functions) [![LaTeX][latex-logo]](assets/concave-functions/concave-functions.tex) [![Typst][typst-logo]](assets/concave-functions/concave-functions.typ) |
|  |  |
| [`convex-functions`](https://janosh.github.io/diagrams/convex-functions) [![LaTeX][latex-logo]](assets/convex-functions/convex-functions.tex) [![Typst][typst-logo]](assets/convex-functions/convex-functions.typ) | [`convex-hull-of-stability`](https://janosh.github.io/diagrams/convex-hull-of-stability) [![LaTeX][latex-logo]](assets/convex-hull-of-stability/convex-hull-of-stability.tex) [![Typst][typst-logo]](assets/convex-hull-of-stability/convex-hull-of-stability.typ) |
|  |  |
| [`critical-temperature`](https://janosh.github.io/diagrams/critical-temperature) [![LaTeX][latex-logo]](assets/critical-temperature/critical-temperature.tex) [![Typst][typst-logo]](assets/critical-temperature/critical-temperature.typ) | [`cylinder-to-plane`](https://janosh.github.io/diagrams/cylinder-to-plane) [![LaTeX][latex-logo]](assets/cylinder-to-plane/cylinder-to-plane.tex) [![Typst][typst-logo]](assets/cylinder-to-plane/cylinder-to-plane.typ) |
|  |  |
| [`dft-choices`](https://janosh.github.io/diagrams/dft-choices) [![LaTeX][latex-logo]](assets/dft-choices/dft-choices.tex) [![Typst][typst-logo]](assets/dft-choices/dft-choices.typ) | [`dft-jacobs-ladder`](https://janosh.github.io/diagrams/dft-jacobs-ladder) [![Typst][typst-logo]](assets/dft-jacobs-ladder/dft-jacobs-ladder.typ) |
|  |  |
| [`dft-mlff-cff-speed-accuracy-transfer`](https://janosh.github.io/diagrams/dft-mlff-cff-speed-accuracy-transfer) [![LaTeX][latex-logo]](assets/dft-mlff-cff-speed-accuracy-transfer/dft-mlff-cff-speed-accuracy-transfer.tex) [![Typst][typst-logo]](assets/dft-mlff-cff-speed-accuracy-transfer/dft-mlff-cff-speed-accuracy-transfer.typ) | [`disk-to-plane`](https://janosh.github.io/diagrams/disk-to-plane) [![LaTeX][latex-logo]](assets/disk-to-plane/disk-to-plane.tex) [![Typst][typst-logo]](assets/disk-to-plane/disk-to-plane.typ) |
|  |  |
| [`divergence`](https://janosh.github.io/diagrams/divergence) [![LaTeX][latex-logo]](assets/divergence/divergence.tex) [![Typst][typst-logo]](assets/divergence/divergence.typ) | [`dropout`](https://janosh.github.io/diagrams/dropout) [![LaTeX][latex-logo]](assets/dropout/dropout.tex) [![Typst][typst-logo]](assets/dropout/dropout.typ) |
|  |  |
| [`ergodic`](https://janosh.github.io/diagrams/ergodic) [![LaTeX][latex-logo]](assets/ergodic/ergodic.tex) [![Typst][typst-logo]](assets/ergodic/ergodic.typ) | [`euler-angles`](https://janosh.github.io/diagrams/euler-angles) [![LaTeX][latex-logo]](assets/euler-angles/euler-angles.tex) |
|  |  |
| [`fermi-dirac-distro`](https://janosh.github.io/diagrams/fermi-dirac-distro) [![LaTeX][latex-logo]](assets/fermi-dirac-distro/fermi-dirac-distro.tex) [![Typst][typst-logo]](assets/fermi-dirac-distro/fermi-dirac-distro.typ) | [`ferroelectric-response`](https://janosh.github.io/diagrams/ferroelectric-response) [![LaTeX][latex-logo]](assets/ferroelectric-response/ferroelectric-response.tex) [![Typst][typst-logo]](assets/ferroelectric-response/ferroelectric-response.typ) |
|  |  |
| [`feynman-diagram-1`](https://janosh.github.io/diagrams/feynman-diagram-1) [![LaTeX][latex-logo]](assets/feynman-diagram-1/feynman-diagram-1.tex) [![Typst][typst-logo]](assets/feynman-diagram-1/feynman-diagram-1.typ) | [`feynman-diagram-2`](https://janosh.github.io/diagrams/feynman-diagram-2) [![LaTeX][latex-logo]](assets/feynman-diagram-2/feynman-diagram-2.tex) [![Typst][typst-logo]](assets/feynman-diagram-2/feynman-diagram-2.typ) |
|  |  |
| [`feynman-diagram-3`](https://janosh.github.io/diagrams/feynman-diagram-3) [![LaTeX][latex-logo]](assets/feynman-diagram-3/feynman-diagram-3.tex) [![Typst][typst-logo]](assets/feynman-diagram-3/feynman-diagram-3.typ) | [`feynman-diagram-4`](https://janosh.github.io/diagrams/feynman-diagram-4) [![LaTeX][latex-logo]](assets/feynman-diagram-4/feynman-diagram-4.tex) [![Typst][typst-logo]](assets/feynman-diagram-4/feynman-diagram-4.typ) |
|  |  |
| [`feynman-diagram-loop`](https://janosh.github.io/diagrams/feynman-diagram-loop) [![LaTeX][latex-logo]](assets/feynman-diagram-loop/feynman-diagram-loop.tex) [![Typst][typst-logo]](assets/feynman-diagram-loop/feynman-diagram-loop.typ) | [`feynman-diagram-loops`](https://janosh.github.io/diagrams/feynman-diagram-loops) [![LaTeX][latex-logo]](assets/feynman-diagram-loops/feynman-diagram-loops.tex) |
|  |  |
| [`feynman-diagram-one-point`](https://janosh.github.io/diagrams/feynman-diagram-one-point) [![LaTeX][latex-logo]](assets/feynman-diagram-one-point/feynman-diagram-one-point.tex) [![Typst][typst-logo]](assets/feynman-diagram-one-point/feynman-diagram-one-point.typ) | [`feynman-diagram-propagator-loop`](https://janosh.github.io/diagrams/feynman-diagram-propagator-loop) [![LaTeX][latex-logo]](assets/feynman-diagram-propagator-loop/feynman-diagram-propagator-loop.tex) [![Typst][typst-logo]](assets/feynman-diagram-propagator-loop/feynman-diagram-propagator-loop.typ) |
|  |  |
| [`feynman-diagrams-loop-regulator`](https://janosh.github.io/diagrams/feynman-diagrams-loop-regulator) [![LaTeX][latex-logo]](assets/feynman-diagrams-loop-regulator/feynman-diagrams-loop-regulator.tex) [![Typst][typst-logo]](assets/feynman-diagrams-loop-regulator/feynman-diagrams-loop-regulator.typ) | [`four-vs-of-data`](https://janosh.github.io/diagrams/four-vs-of-data) [![LaTeX][latex-logo]](assets/four-vs-of-data/four-vs-of-data.tex) [![Typst][typst-logo]](assets/four-vs-of-data/four-vs-of-data.typ) |
|  |  |
| [`gas-pressure-on-wall`](https://janosh.github.io/diagrams/gas-pressure-on-wall) [![LaTeX][latex-logo]](assets/gas-pressure-on-wall/gas-pressure-on-wall.tex) [![Typst][typst-logo]](assets/gas-pressure-on-wall/gas-pressure-on-wall.typ) | [`generative-adversarial-network`](https://janosh.github.io/diagrams/generative-adversarial-network) [![LaTeX][latex-logo]](assets/generative-adversarial-network/generative-adversarial-network.tex) [![Typst][typst-logo]](assets/generative-adversarial-network/generative-adversarial-network.typ) |
|  |  |
| [`geometric-bayes`](https://janosh.github.io/diagrams/geometric-bayes) [![LaTeX][latex-logo]](assets/geometric-bayes/geometric-bayes.tex) [![Typst][typst-logo]](assets/geometric-bayes/geometric-bayes.typ) | [`gnn-node-aggregation`](https://janosh.github.io/diagrams/gnn-node-aggregation) [![Typst][typst-logo]](assets/gnn-node-aggregation/gnn-node-aggregation.typ) |
|  |  |
| [`grand-canonical-occupation-fluctuations`](https://janosh.github.io/diagrams/grand-canonical-occupation-fluctuations) [![LaTeX][latex-logo]](assets/grand-canonical-occupation-fluctuations/grand-canonical-occupation-fluctuations.tex) [![Typst][typst-logo]](assets/grand-canonical-occupation-fluctuations/grand-canonical-occupation-fluctuations.typ) | [`graph-isomorphism`](https://janosh.github.io/diagrams/graph-isomorphism) [![LaTeX][latex-logo]](assets/graph-isomorphism/graph-isomorphism.tex) [![Typst][typst-logo]](assets/graph-isomorphism/graph-isomorphism.typ) |
|  |  |
| [`gravitons`](https://janosh.github.io/diagrams/gravitons) [![LaTeX][latex-logo]](assets/gravitons/gravitons.tex) | [`harmonic-oscillator-energy-vs-freq`](https://janosh.github.io/diagrams/harmonic-oscillator-energy-vs-freq) [![LaTeX][latex-logo]](assets/harmonic-oscillator-energy-vs-freq/harmonic-oscillator-energy-vs-freq.tex) [![Typst][typst-logo]](assets/harmonic-oscillator-energy-vs-freq/harmonic-oscillator-energy-vs-freq.typ) |
|  |  |
| [`harmonic-oscillator-energy-vs-inv-temp`](https://janosh.github.io/diagrams/harmonic-oscillator-energy-vs-inv-temp) [![LaTeX][latex-logo]](assets/harmonic-oscillator-energy-vs-inv-temp/harmonic-oscillator-energy-vs-inv-temp.tex) [![Typst][typst-logo]](assets/harmonic-oscillator-energy-vs-inv-temp/harmonic-oscillator-energy-vs-inv-temp.typ) | [`heatmap`](https://janosh.github.io/diagrams/heatmap) [![LaTeX][latex-logo]](assets/heatmap/heatmap.tex) [![Typst][typst-logo]](assets/heatmap/heatmap.typ) |
|  |  |
| [`higgs-potential`](https://janosh.github.io/diagrams/higgs-potential) [![LaTeX][latex-logo]](assets/higgs-potential/higgs-potential.tex) | [`high-entropy-alloy`](https://janosh.github.io/diagrams/high-entropy-alloy) [![LaTeX][latex-logo]](assets/high-entropy-alloy/high-entropy-alloy.tex) [![Typst][typst-logo]](assets/high-entropy-alloy/high-entropy-alloy.typ) |
|  |  |
| [`hot-swapping-auto-batcher`](https://janosh.github.io/diagrams/hot-swapping-auto-batcher) [![Typst][typst-logo]](assets/hot-swapping-auto-batcher/hot-swapping-auto-batcher.typ) | [`isotherms`](https://janosh.github.io/diagrams/isotherms) [![LaTeX][latex-logo]](assets/isotherms/isotherms.tex) [![Typst][typst-logo]](assets/isotherms/isotherms.typ) |
|  |  |
| [`jensens-inequality`](https://janosh.github.io/diagrams/jensens-inequality) [![LaTeX][latex-logo]](assets/jensens-inequality/jensens-inequality.tex) [![Typst][typst-logo]](assets/jensens-inequality/jensens-inequality.typ) | [`k-nearest-neighbors`](https://janosh.github.io/diagrams/k-nearest-neighbors) [![Typst][typst-logo]](assets/k-nearest-neighbors/k-nearest-neighbors.typ) |
|  |  |
| [`k-space`](https://janosh.github.io/diagrams/k-space) [![LaTeX][latex-logo]](assets/k-space/k-space.tex) [![Typst][typst-logo]](assets/k-space/k-space.typ) | [`kohn-sham-cycle`](https://janosh.github.io/diagrams/kohn-sham-cycle) [![LaTeX][latex-logo]](assets/kohn-sham-cycle/kohn-sham-cycle.tex) [![Typst][typst-logo]](assets/kohn-sham-cycle/kohn-sham-cycle.typ) |
|  |  |
| [`light`](https://janosh.github.io/diagrams/light) [![Typst][typst-logo]](assets/light/light.typ) | [`m-theory`](https://janosh.github.io/diagrams/m-theory) [![LaTeX][latex-logo]](assets/m-theory/m-theory.tex) |
|  |  |
| [`made`](https://janosh.github.io/diagrams/made) [![LaTeX][latex-logo]](assets/made/made.tex) [![Typst][typst-logo]](assets/made/made.typ) | [`masked-autoregressive-flow`](https://janosh.github.io/diagrams/masked-autoregressive-flow) [![LaTeX][latex-logo]](assets/masked-autoregressive-flow/masked-autoregressive-flow.tex) [![Typst][typst-logo]](assets/masked-autoregressive-flow/masked-autoregressive-flow.typ) |
|  |  |
| [`materials-informatics-challenges`](https://janosh.github.io/diagrams/materials-informatics-challenges) [![LaTeX][latex-logo]](assets/materials-informatics-challenges/materials-informatics-challenges.tex) | [`materials-informatics`](https://janosh.github.io/diagrams/materials-informatics) [![LaTeX][latex-logo]](assets/materials-informatics/materials-informatics.tex) [![Typst][typst-logo]](assets/materials-informatics/materials-informatics.typ) |
|  |  |
| [`matsubara-contour-1`](https://janosh.github.io/diagrams/matsubara-contour-1) [![LaTeX][latex-logo]](assets/matsubara-contour-1/matsubara-contour-1.tex) [![Typst][typst-logo]](assets/matsubara-contour-1/matsubara-contour-1.typ) | [`matsubara-contour-2`](https://janosh.github.io/diagrams/matsubara-contour-2) [![LaTeX][latex-logo]](assets/matsubara-contour-2/matsubara-contour-2.tex) [![Typst][typst-logo]](assets/matsubara-contour-2/matsubara-contour-2.typ) |
|  |  |
| [`matsubara-contour-3`](https://janosh.github.io/diagrams/matsubara-contour-3) [![LaTeX][latex-logo]](assets/matsubara-contour-3/matsubara-contour-3.tex) [![Typst][typst-logo]](assets/matsubara-contour-3/matsubara-contour-3.typ) | [`matsubara-contour-4`](https://janosh.github.io/diagrams/matsubara-contour-4) [![LaTeX][latex-logo]](assets/matsubara-contour-4/matsubara-contour-4.tex) [![Typst][typst-logo]](assets/matsubara-contour-4/matsubara-contour-4.typ) |
|  |  |
| [`matsubara-contour-5`](https://janosh.github.io/diagrams/matsubara-contour-5) [![LaTeX][latex-logo]](assets/matsubara-contour-5/matsubara-contour-5.tex) [![Typst][typst-logo]](assets/matsubara-contour-5/matsubara-contour-5.typ) | [`matsubara-contour-deformation`](https://janosh.github.io/diagrams/matsubara-contour-deformation) [![LaTeX][latex-logo]](assets/matsubara-contour-deformation/matsubara-contour-deformation.tex) |
|  |  |
| [`maxwell-boltzmann-distribution`](https://janosh.github.io/diagrams/maxwell-boltzmann-distribution) [![LaTeX][latex-logo]](assets/maxwell-boltzmann-distribution/maxwell-boltzmann-distribution.tex) [![Typst][typst-logo]](assets/maxwell-boltzmann-distribution/maxwell-boltzmann-distribution.typ) | [`mexican-hat`](https://janosh.github.io/diagrams/mexican-hat) [![LaTeX][latex-logo]](assets/mexican-hat/mexican-hat.tex) |
|  |  |
| [`ml-activations`](https://janosh.github.io/diagrams/ml-activations) [![Typst][typst-logo]](assets/ml-activations/ml-activations.typ) | [`momentum-shell`](https://janosh.github.io/diagrams/momentum-shell) [![LaTeX][latex-logo]](assets/momentum-shell/momentum-shell.tex) [![Typst][typst-logo]](assets/momentum-shell/momentum-shell.typ) |
|  |  |
| [`mosfet`](https://janosh.github.io/diagrams/mosfet) [![LaTeX][latex-logo]](assets/mosfet/mosfet.tex) [![Typst][typst-logo]](assets/mosfet/mosfet.typ) | [`normalizing-flow-coupling-layer`](https://janosh.github.io/diagrams/normalizing-flow-coupling-layer) [![LaTeX][latex-logo]](assets/normalizing-flow-coupling-layer/normalizing-flow-coupling-layer.tex) [![Typst][typst-logo]](assets/normalizing-flow-coupling-layer/normalizing-flow-coupling-layer.typ) |
|  |  |
| [`normalizing-flow`](https://janosh.github.io/diagrams/normalizing-flow) [![LaTeX][latex-logo]](assets/normalizing-flow/normalizing-flow.tex) [![Typst][typst-logo]](assets/normalizing-flow/normalizing-flow.typ) | [`open-string-topologies`](https://janosh.github.io/diagrams/open-string-topologies) [![LaTeX][latex-logo]](assets/open-string-topologies/open-string-topologies.tex) |
|  |  |
| [`operator-orderings`](https://janosh.github.io/diagrams/operator-orderings) [![LaTeX][latex-logo]](assets/operator-orderings/operator-orderings.tex) | [`organic-molecule`](https://janosh.github.io/diagrams/organic-molecule) [![LaTeX][latex-logo]](assets/organic-molecule/organic-molecule.tex) [![Typst][typst-logo]](assets/organic-molecule/organic-molecule.typ) |
|  |  |
| [`otto-cycle`](https://janosh.github.io/diagrams/otto-cycle) [![LaTeX][latex-logo]](assets/otto-cycle/otto-cycle.tex) [![Typst][typst-logo]](assets/otto-cycle/otto-cycle.typ) | [`periodic-table`](https://janosh.github.io/diagrams/periodic-table) [![LaTeX][latex-logo]](assets/periodic-table/periodic-table.tex) [![Typst][typst-logo]](assets/periodic-table/periodic-table.typ) |
|  |  |
| [`physics-mindmap`](https://janosh.github.io/diagrams/physics-mindmap) [![LaTeX][latex-logo]](assets/physics-mindmap/physics-mindmap.tex) | [`plane-to-torus`](https://janosh.github.io/diagrams/plane-to-torus) [![LaTeX][latex-logo]](assets/plane-to-torus/plane-to-torus.tex) |
|  |  |
| [`plate-capacitor`](https://janosh.github.io/diagrams/plate-capacitor) [![LaTeX][latex-logo]](assets/plate-capacitor/plate-capacitor.tex) [![Typst][typst-logo]](assets/plate-capacitor/plate-capacitor.typ) | [`potential-triangle`](https://janosh.github.io/diagrams/potential-triangle) [![LaTeX][latex-logo]](assets/potential-triangle/potential-triangle.tex) |
|  |  |
| [`propagator-fluctuations`](https://janosh.github.io/diagrams/propagator-fluctuations) [![LaTeX][latex-logo]](assets/propagator-fluctuations/propagator-fluctuations.tex) [![Typst][typst-logo]](assets/propagator-fluctuations/propagator-fluctuations.typ) | [`qft-propagator-poles`](https://janosh.github.io/diagrams/qft-propagator-poles) [![LaTeX][latex-logo]](assets/qft-propagator-poles/qft-propagator-poles.tex) [![Typst][typst-logo]](assets/qft-propagator-poles/qft-propagator-poles.typ) |
|  |  |
| [`qft-propagators`](https://janosh.github.io/diagrams/qft-propagators) [![LaTeX][latex-logo]](assets/qft-propagators/qft-propagators.tex) [![Typst][typst-logo]](assets/qft-propagators/qft-propagators.typ) | [`qm-cost-vs-acc`](https://janosh.github.io/diagrams/qm-cost-vs-acc) [![LaTeX][latex-logo]](assets/qm-cost-vs-acc/qm-cost-vs-acc.tex) [![Typst][typst-logo]](assets/qm-cost-vs-acc/qm-cost-vs-acc.typ) |
|  |  |
| [`random-forest`](https://janosh.github.io/diagrams/random-forest) [![LaTeX][latex-logo]](assets/random-forest/random-forest.tex) [![Typst][typst-logo]](assets/random-forest/random-forest.typ) | [`regular-vs-bayes-nn`](https://janosh.github.io/diagrams/regular-vs-bayes-nn) [![LaTeX][latex-logo]](assets/regular-vs-bayes-nn/regular-vs-bayes-nn.tex) [![Typst][typst-logo]](assets/regular-vs-bayes-nn/regular-vs-bayes-nn.typ) |
|  |  |
| [`rg-flow-in-theory-space`](https://janosh.github.io/diagrams/rg-flow-in-theory-space) [![LaTeX][latex-logo]](assets/rg-flow-in-theory-space/rg-flow-in-theory-space.tex) [![Typst][typst-logo]](assets/rg-flow-in-theory-space/rg-flow-in-theory-space.typ) | [`rnvp-affine-coupling-layer`](https://janosh.github.io/diagrams/rnvp-affine-coupling-layer) [![LaTeX][latex-logo]](assets/rnvp-affine-coupling-layer/rnvp-affine-coupling-layer.tex) [![Typst][typst-logo]](assets/rnvp-affine-coupling-layer/rnvp-affine-coupling-layer.typ) |
|  |  |
| [`roc-curve`](https://janosh.github.io/diagrams/roc-curve) [![Typst][typst-logo]](assets/roc-curve/roc-curve.typ) | [`roost-update`](https://janosh.github.io/diagrams/roost-update) [![LaTeX][latex-logo]](assets/roost-update/roost-update.tex) |
|  |  |
| [`sabatier-principle`](https://janosh.github.io/diagrams/sabatier-principle) [![LaTeX][latex-logo]](assets/sabatier-principle/sabatier-principle.tex) [![Typst][typst-logo]](assets/sabatier-principle/sabatier-principle.typ) | [`saddle-point`](https://janosh.github.io/diagrams/saddle-point) [![LaTeX][latex-logo]](assets/saddle-point/saddle-point.tex) |
|  |  |
| [`scattering-detailed-balance`](https://janosh.github.io/diagrams/scattering-detailed-balance) [![LaTeX][latex-logo]](assets/scattering-detailed-balance/scattering-detailed-balance.tex) [![Typst][typst-logo]](assets/scattering-detailed-balance/scattering-detailed-balance.typ) | [`seebeck-effect`](https://janosh.github.io/diagrams/seebeck-effect) [![LaTeX][latex-logo]](assets/seebeck-effect/seebeck-effect.tex) |
|  |  |
| [`self-attention`](https://janosh.github.io/diagrams/self-attention) [![LaTeX][latex-logo]](assets/self-attention/self-attention.tex) [![Typst][typst-logo]](assets/self-attention/self-attention.typ) | [`sierpinski-triangle`](https://janosh.github.io/diagrams/sierpinski-triangle) [![Typst][typst-logo]](assets/sierpinski-triangle/sierpinski-triangle.typ) |
|  |  |
| [`single-head-attention`](https://janosh.github.io/diagrams/single-head-attention) [![LaTeX][latex-logo]](assets/single-head-attention/single-head-attention.tex) [![Typst][typst-logo]](assets/single-head-attention/single-head-attention.typ) | [`skip-connection`](https://janosh.github.io/diagrams/skip-connection) [![LaTeX][latex-logo]](assets/skip-connection/skip-connection.tex) [![Typst][typst-logo]](assets/skip-connection/skip-connection.typ) |
|  |  |
| [`spontaneous-magnetization`](https://janosh.github.io/diagrams/spontaneous-magnetization) [![LaTeX][latex-logo]](assets/spontaneous-magnetization/spontaneous-magnetization.tex) [![Typst][typst-logo]](assets/spontaneous-magnetization/spontaneous-magnetization.typ) | [`statistical-energy-distributions`](https://janosh.github.io/diagrams/statistical-energy-distributions) [![LaTeX][latex-logo]](assets/statistical-energy-distributions/statistical-energy-distributions.tex) [![Typst][typst-logo]](assets/statistical-energy-distributions/statistical-energy-distributions.typ) |
|  |  |
| [`sublattice-points`](https://janosh.github.io/diagrams/sublattice-points) [![Typst][typst-logo]](assets/sublattice-points/sublattice-points.typ) | [`tanh`](https://janosh.github.io/diagrams/tanh) [![LaTeX][latex-logo]](assets/tanh/tanh.tex) [![Typst][typst-logo]](assets/tanh/tanh.typ) |
|  |  |
| [`thermo-ensemble-trafos`](https://janosh.github.io/diagrams/thermo-ensemble-trafos) [![LaTeX][latex-logo]](assets/thermo-ensemble-trafos/thermo-ensemble-trafos.tex) [![Typst][typst-logo]](assets/thermo-ensemble-trafos/thermo-ensemble-trafos.typ) | [`thermodynamic-potentials-venn-diagram`](https://janosh.github.io/diagrams/thermodynamic-potentials-venn-diagram) [![Typst][typst-logo]](assets/thermodynamic-potentials-venn-diagram/thermodynamic-potentials-venn-diagram.typ) |
|  |  |
| [`thomson-scattering`](https://janosh.github.io/diagrams/thomson-scattering) [![LaTeX][latex-logo]](assets/thomson-scattering/thomson-scattering.tex) | [`tori`](https://janosh.github.io/diagrams/tori) [![LaTeX][latex-logo]](assets/tori/tori.tex) |
|  |  |
| [`torus-fundamental-domain`](https://janosh.github.io/diagrams/torus-fundamental-domain) [![LaTeX][latex-logo]](assets/torus-fundamental-domain/torus-fundamental-domain.tex) [![Typst][typst-logo]](assets/torus-fundamental-domain/torus-fundamental-domain.typ) | [`torus`](https://janosh.github.io/diagrams/torus) [![LaTeX][latex-logo]](assets/torus/torus.tex) |
|  |  |
| [`train-test-split`](https://janosh.github.io/diagrams/train-test-split) [![Typst][typst-logo]](assets/train-test-split/train-test-split.typ) | [`two-point-no-cutoff`](https://janosh.github.io/diagrams/two-point-no-cutoff) [![LaTeX][latex-logo]](assets/two-point-no-cutoff/two-point-no-cutoff.tex) [![Typst][typst-logo]](assets/two-point-no-cutoff/two-point-no-cutoff.typ) |
|  |  |
| [`two-point-propagator-flow`](https://janosh.github.io/diagrams/two-point-propagator-flow) [![LaTeX][latex-logo]](assets/two-point-propagator-flow/two-point-propagator-flow.tex) [![Typst][typst-logo]](assets/two-point-propagator-flow/two-point-propagator-flow.typ) | [`unregularized-propagator-diagrams`](https://janosh.github.io/diagrams/unregularized-propagator-diagrams) [![LaTeX][latex-logo]](assets/unregularized-propagator-diagrams/unregularized-propagator-diagrams.tex) [![Typst][typst-logo]](assets/unregularized-propagator-diagrams/unregularized-propagator-diagrams.typ) |
|  |  |
| [`variational-autoencoder`](https://janosh.github.io/diagrams/variational-autoencoder) [![LaTeX][latex-logo]](assets/variational-autoencoder/variational-autoencoder.tex) [![Typst][typst-logo]](assets/variational-autoencoder/variational-autoencoder.typ) | [`wetterich-equation`](https://janosh.github.io/diagrams/wetterich-equation) [![LaTeX][latex-logo]](assets/wetterich-equation/wetterich-equation.tex) [![Typst][typst-logo]](assets/wetterich-equation/wetterich-equation.typ) |
|  |  |
| [`wyckoff-positions`](https://janosh.github.io/diagrams/wyckoff-positions) [![LaTeX][latex-logo]](assets/wyckoff-positions/wyckoff-positions.tex) [![Typst][typst-logo]](assets/wyckoff-positions/wyckoff-positions.typ) | [`zt-vs-n`](https://janosh.github.io/diagrams/zt-vs-n) [![LaTeX][latex-logo]](assets/zt-vs-n/zt-vs-n.tex) [![Typst][typst-logo]](assets/zt-vs-n/zt-vs-n.typ) |
|  |  |## Scripts
Files in [`/scripts`](scripts) render and convert the `.typ` and `.tex` files in [`/assets`](assets) to various formats:
- low + high-res PNG
- SVGTo run the scripts requires the following dependencies:
- [`pdf-compressor`](https://github.com/janosh/pdf-compressor) (`pip install pdf-compressor`)
- [`gs` (GhostScript)](https://ghostscript.com) (optional, worse compression but needs no API key so less setup than `pdf-compressor`)
- [`pdf2svg`](https://github.com/dawbarton/pdf2svg) (`brew install pdf2svg`)
- `convert` (part of [ImageMagick](https://imagemagick.org/script))
- [`pngquant`](https://github.com/kornelski/pngquant) (`brew install pngquant`)
- [`zopflipng`](https://github.com/google/zopfli) (`brew install zopfli`)To run `pdf-compressor` directly or to use it as part of the [`render-(typst|tikz).py`](scripts/render_typst.py) pipeline, you need a free public API key from . Pass it to `pdf-compressor` with:
```sh
pdf-compressor --set-api-key project_public_7c854a9db0...
```## 📖 How to cite
You can cite the [Zenodo record](https://zenodo.org/badge/latestdoi/286220365) using the following BibTeX entry:
```bib
@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
}
```[typst-logo]: https://api.iconify.design/simple-icons:typst.svg?color=white&height=16 "Open this diagram's Typst code"
[latex-logo]: https://api.iconify.design/simple-icons:latex.svg?color=white&height=16 "Open this diagram's LaTeX code"