Skip to main content

{nodes} is about nodes in {diagrams}. A node typically consists of a shape which may or may not have a border and a filling, as well as some (text) content but it may also be empty. It can be connected with other nodes or parts of the diagram via edges.

This tag should be used for questions related to nodes in , e.g. \node in TikZ diagrams.

A node is in general a rectangle or circle or some other shape which may or may not have a border and/or a filling drawn in a TikZ diagram (inside a tikzpicture environment) with a defined position. It can also contain some text. It can be connected with other nodes or parts of the diagram via edges. A node can have a name which can be used to refer to it later.

General syntax:

\node [<options>] (<name>) at (<coordinate>) {<contents>};

or

\node (<name>) at (<coordinate>) [<options>] {<contents>};

The macro \node is a shorthand for \path node. An introduction about nodes and how to use them in the TikZ context can be found in chapter 3.3 of the TikZ/PGF manual.