https://github.com/janosh/tikz
TikZ figures for concepts in physics/chemistry/ML
https://github.com/janosh/tikz
latex machine-learning physics scientific-visualization svelte svelte-kit tikz tikz-gallery tikz-standalone
Last synced: 3 months ago
JSON representation
TikZ figures for concepts in physics/chemistry/ML
- Host: GitHub
- URL: https://github.com/janosh/tikz
- Owner: janosh
- License: mit
- Created: 2020-08-09T11:07:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-07T16:34:41.000Z (6 months ago)
- Last Synced: 2024-10-12T15:56:52.805Z (6 months ago)
- Topics: latex, machine-learning, physics, scientific-visualization, svelte, svelte-kit, tikz, tikz-gallery, tikz-standalone
- Language: TeX
- Homepage: https://janosh.github.io/tikz
- Size: 18.6 MB
- Stars: 201
- Watchers: 7
- Forks: 27
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
- Citation: citation.cff
Awesome Lists containing this project
- awesome-sveltekit - [code
README
![]()
[](https://latex-project.org)
[](https://github.com/janosh/tikz/actions/workflows/gh-pages.yml)
[](https://github.com/janosh/tikz/actions/workflows/link-check.yml)
[](https://github.com/janosh/tikz/pulls)
[](https://zenodo.org/badge/latestdoi/286220365)Collection of **115** `standalone` TikZ figures for illustrating concepts in physics, chemistry and machine learning.
Check out [janosh.github.io](https://janosh.github.io/tikz) to search, sort, open in Overleaf and download figures (PDF/SVG/PNG) from this collection.
Have a TikZ image you'd like to share? [Submit a PR](https://github.com/janosh/tikz/pulls) with a `.tex` and metadata `.yml` file in the `assets/` directory and add yourself to the [`citation.cff`](citation.cff) file.
## Images
| | |
| :----------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------: |
| [`autoencoder`](https://janosh.github.io/tikz/autoencoder) | [`aviary`](https://janosh.github.io/tikz/aviary) |
|  |  |
| [`basis-plus-lattice`](https://janosh.github.io/tikz/basis-plus-lattice) | [`bloch-sphere`](https://janosh.github.io/tikz/bloch-sphere) |
|  |  |
| [`bose-einstein-distribution-3d`](https://janosh.github.io/tikz/bose-einstein-distribution-3d) | [`bose-einstein-distribution`](https://janosh.github.io/tikz/bose-einstein-distribution) |
|  |  |
| [`branch-and-bound`](https://janosh.github.io/tikz/branch-and-bound) | [`branch-cuts-1`](https://janosh.github.io/tikz/branch-cuts-1) |
|  |  |
| [`branch-cuts-2`](https://janosh.github.io/tikz/branch-cuts-2) | [`change-of-variables`](https://janosh.github.io/tikz/change-of-variables) |
|  |  |
| [`closed-string-topologies`](https://janosh.github.io/tikz/closed-string-topologies) | [`complex-sign-function`](https://janosh.github.io/tikz/complex-sign-function) |
|  |  |
| [`concave-functions`](https://janosh.github.io/tikz/concave-functions) | [`conv2d`](https://janosh.github.io/tikz/conv2d) |
|  |  |
| [`convex-functions`](https://janosh.github.io/tikz/convex-functions) | [`convex-hull-of-stability`](https://janosh.github.io/tikz/convex-hull-of-stability) |
|  |  |
| [`critical-temperature`](https://janosh.github.io/tikz/critical-temperature) | [`cylinder-to-plane`](https://janosh.github.io/tikz/cylinder-to-plane) |
|  |  |
| [`detailed-balance`](https://janosh.github.io/tikz/detailed-balance) | [`dft-choices`](https://janosh.github.io/tikz/dft-choices) |
|  |  |
| [`dft-mlff-cff-speed-accuracy-transfer`](https://janosh.github.io/tikz/dft-mlff-cff-speed-accuracy-transfer) | [`diagrams`](https://janosh.github.io/tikz/diagrams) |
|  |  |
| [`disk-to-plane`](https://janosh.github.io/tikz/disk-to-plane) | [`divergence`](https://janosh.github.io/tikz/divergence) |
|  |  |
| [`dropout`](https://janosh.github.io/tikz/dropout) | [`energy-distribution-functions`](https://janosh.github.io/tikz/energy-distribution-functions) |
|  |  |
| [`ergodic`](https://janosh.github.io/tikz/ergodic) | [`euler-angles`](https://janosh.github.io/tikz/euler-angles) |
|  |  |
| [`fermi-dirac-vs-temp`](https://janosh.github.io/tikz/fermi-dirac-vs-temp) | [`ferroelectric-response`](https://janosh.github.io/tikz/ferroelectric-response) |
|  |  |
| [`feynman-1`](https://janosh.github.io/tikz/feynman-1) | [`feynman-2`](https://janosh.github.io/tikz/feynman-2) |
|  |  |
| [`feynman-3`](https://janosh.github.io/tikz/feynman-3) | [`feynman-4`](https://janosh.github.io/tikz/feynman-4) |
|  |  |
| [`feynman-diagram-propagator-loop`](https://janosh.github.io/tikz/feynman-diagram-propagator-loop) | [`fluctuations`](https://janosh.github.io/tikz/fluctuations) |
|  |  |
| [`four-vs-of-data`](https://janosh.github.io/tikz/four-vs-of-data) | [`gan`](https://janosh.github.io/tikz/gan) |
|  |  |
| [`geometric-bayes`](https://janosh.github.io/tikz/geometric-bayes) | [`graph-isomorphism`](https://janosh.github.io/tikz/graph-isomorphism) |
|  |  |
| [`gravitons`](https://janosh.github.io/tikz/gravitons) | [`harm-osc-energy-freq`](https://janosh.github.io/tikz/harm-osc-energy-freq) |
|  |  |
| [`harm-osc-energy-inv-temp`](https://janosh.github.io/tikz/harm-osc-energy-inv-temp) | [`hea`](https://janosh.github.io/tikz/hea) |
|  |  |
| [`heatmap`](https://janosh.github.io/tikz/heatmap) | [`higgs-potential`](https://janosh.github.io/tikz/higgs-potential) |
|  |  |
| [`isotherms`](https://janosh.github.io/tikz/isotherms) | [`jensens-inequality`](https://janosh.github.io/tikz/jensens-inequality) |
|  |  |
| [`k-space`](https://janosh.github.io/tikz/k-space) | [`kohn-sham-cycle`](https://janosh.github.io/tikz/kohn-sham-cycle) |
|  |  |
| [`light`](https://janosh.github.io/tikz/light) | [`loop`](https://janosh.github.io/tikz/loop) |
|  |  |
| [`loops`](https://janosh.github.io/tikz/loops) | [`m-theory`](https://janosh.github.io/tikz/m-theory) |
|  |  |
| [`made`](https://janosh.github.io/tikz/made) | [`maf`](https://janosh.github.io/tikz/maf) |
|  |  |
| [`materials-informatics-challenges`](https://janosh.github.io/tikz/materials-informatics-challenges) | [`materials-informatics`](https://janosh.github.io/tikz/materials-informatics) |
|  |  |
| [`matsubara-contour-1`](https://janosh.github.io/tikz/matsubara-contour-1) | [`matsubara-contour-2`](https://janosh.github.io/tikz/matsubara-contour-2) |
|  |  |
| [`matsubara-contour-3`](https://janosh.github.io/tikz/matsubara-contour-3) | [`matsubara-contour-4`](https://janosh.github.io/tikz/matsubara-contour-4) |
|  |  |
| [`matsubara-contour-5`](https://janosh.github.io/tikz/matsubara-contour-5) | [`matsubara-contour-deformation`](https://janosh.github.io/tikz/matsubara-contour-deformation) |
|  |  |
| [`maxwell-boltzmann-distribution`](https://janosh.github.io/tikz/maxwell-boltzmann-distribution) | [`mexican-hat`](https://janosh.github.io/tikz/mexican-hat) |
|  |  |
| [`ml-activations`](https://janosh.github.io/tikz/ml-activations) | [`mosfet`](https://janosh.github.io/tikz/mosfet) |
|  |  |
| [`mphil-gantt`](https://janosh.github.io/tikz/mphil-gantt) | [`nf-coupling-layer`](https://janosh.github.io/tikz/nf-coupling-layer) |
|  |  |
| [`normalizing-flow`](https://janosh.github.io/tikz/normalizing-flow) | [`one-point`](https://janosh.github.io/tikz/one-point) |
|  |  |
| [`open-string-topologies`](https://janosh.github.io/tikz/open-string-topologies) | [`operator-orderings`](https://janosh.github.io/tikz/operator-orderings) |
|  |  |
| [`organic-molecule`](https://janosh.github.io/tikz/organic-molecule) | [`otto-cycle`](https://janosh.github.io/tikz/otto-cycle) |
|  |  |
| [`periodic-table`](https://janosh.github.io/tikz/periodic-table) | [`physics-mindmap`](https://janosh.github.io/tikz/physics-mindmap) |
|  |  |
| [`plane-to-torus`](https://janosh.github.io/tikz/plane-to-torus) | [`plate-capacitor`](https://janosh.github.io/tikz/plate-capacitor) |
|  |  |
| [`poles`](https://janosh.github.io/tikz/poles) | [`potential-triangle`](https://janosh.github.io/tikz/potential-triangle) |
|  |  |
| [`propagator-fluctuations`](https://janosh.github.io/tikz/propagator-fluctuations) | [`propagators`](https://janosh.github.io/tikz/propagators) |
|  |  |
| [`qm-cost-vs-acc`](https://janosh.github.io/tikz/qm-cost-vs-acc) | [`random-forest`](https://janosh.github.io/tikz/random-forest) |
|  |  |
| [`regular-vs-bayes-nn`](https://janosh.github.io/tikz/regular-vs-bayes-nn) | [`relation-space`](https://janosh.github.io/tikz/relation-space) |
|  |  |
| [`rnvp`](https://janosh.github.io/tikz/rnvp) | [`roost-update`](https://janosh.github.io/tikz/roost-update) |
|  |  |
| [`sabatier-principle`](https://janosh.github.io/tikz/sabatier-principle) | [`saddle-point`](https://janosh.github.io/tikz/saddle-point) |
|  |  |
| [`sbs-aktionen`](https://janosh.github.io/tikz/sbs-aktionen) | [`seebeck-effect`](https://janosh.github.io/tikz/seebeck-effect) |
|  |  |
| [`self-attention`](https://janosh.github.io/tikz/self-attention) | [`shell`](https://janosh.github.io/tikz/shell) |
|  |  |
| [`sign-plane`](https://janosh.github.io/tikz/sign-plane) | [`single-head-attention`](https://janosh.github.io/tikz/single-head-attention) |
|  |  |
| [`skip-connection`](https://janosh.github.io/tikz/skip-connection) | [`spontaneous-magnetization`](https://janosh.github.io/tikz/spontaneous-magnetization) |
|  |  |
| [`tanh`](https://janosh.github.io/tikz/tanh) | [`theory-space`](https://janosh.github.io/tikz/theory-space) |
|  |  |
| [`thermo-ensemble-trafos`](https://janosh.github.io/tikz/thermo-ensemble-trafos) | [`thomson-scattering`](https://janosh.github.io/tikz/thomson-scattering) |
|  |  |
| [`tori`](https://janosh.github.io/tikz/tori) | [`torus-fundamental-domain`](https://janosh.github.io/tikz/torus-fundamental-domain) |
|  |  |
| [`torus`](https://janosh.github.io/tikz/torus) | [`two-point-no-cutoff`](https://janosh.github.io/tikz/two-point-no-cutoff) |
|  |  |
| [`two-point`](https://janosh.github.io/tikz/two-point) | [`unregularized-propagator-diagrams`](https://janosh.github.io/tikz/unregularized-propagator-diagrams) |
|  |  |
| [`vae`](https://janosh.github.io/tikz/vae) | [`wall`](https://janosh.github.io/tikz/wall) |
|  |  |
| [`wetterich-equation`](https://janosh.github.io/tikz/wetterich-equation) | [`wyckoff-positions`](https://janosh.github.io/tikz/wyckoff-positions) |
|  |  |
| [`zt-vs-n`](https://janosh.github.io/tikz/zt-vs-n) | |
|  | |## Scripts
Files in [`/scripts`](scripts) render and compress the standalone `.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-tikz.py`](scripts/render-tikz.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_tikz_2020,
title = {Collection of standalone TikZ images},
author = {Riebesell, Janosh and Bringuier, Stefan},
date = {2020-08-09},
year = {2020},
doi = {10.5281/zenodo.7486911},
url = {https://github.com/janosh/tikz},
note = {10.5281/zenodo.7486911 - https://github.com/janosh/tikz},
version = {0.1.0},
urldate = {2023-01-01}, % optional, replace with your date of access
}
```