← browse the library
Neuron preview
icon

Neuron

Single artificial neuron / perceptron with weighted inputs and one output.

idneuron
typeicon
domainml
requirestikz, arrows.meta
licenseCC0-1.0
authorOpenTikZ contributors

neuronperceptronunitnodeneural networkactivation

Download SVG
neuron.tex
\documentclass[border=4pt]{standalone}

% --- packages (mirror these in neuron.meta.json "requires") ---
\usepackage{tikz}
\usetikzlibrary{arrows.meta}

% --- palette (canonical source: reference/color-palettes/color-palettes.md; light variant) ---
\definecolor{otblue}{HTML}{0072B2}
\definecolor{otorange}{HTML}{E69F00}
\definecolor{otteal}{HTML}{009E73}
\definecolor{otpurple}{HTML}{CC79A7}
\definecolor{otgray}{HTML}{5A5A5A}

\begin{document}
\begin{tikzpicture}[line width=0.9pt, >={Stealth[length=2.2mm]}]
  % soma
  \node[circle, draw=otblue!75!black, fill=otblue!18, minimum size=1.15cm, inner sep=0] (soma) at (0,0) {};
  % weighted inputs (dendrites)
  \foreach \y in {0.75, 0, -0.75}{
    \draw[->, draw=otgray!75] (-1.7,\y) -- (soma);
  }
  % output (axon)
  \draw[->, draw=otgray!75] (soma) -- (1.7,0);
\end{tikzpicture}
\end{document}

Use it

The file compiles on its own (\documentclass{standalone}). Drop it into your project and \input it, or copy the tikzpicture into your figure. Colours come from the shared palette defined in the preamble — edit those named colours, not raw hex.

Graphic content is CC0 1.0 (public domain) — reuse freely, no attribution required.