1\documentclass{article}
2\usepackage{tikz}
3\usetikzlibrary{shapes,snakes}
4
5\begin{document}
6
7\begin{verbatim}
8:Title: Node shapes
9:Tags: Basics, Nodes and shapes, Matrix, PGF 1.18
10
11An overview of predefined node shapes. Note that only the ``rectangle`` and
12``circle`` shapes are loaded by default. To use other shapes, load the
13``shape`` library. The ``regular polygon`` and ``star`` shapes are only available for PGF >= v 1.18.
14\end{verbatim}
15
16\begin{tikzpicture}[scale=2]
17    \tikzstyle{ann} = [draw=none,fill=none,right]
18    \matrix[nodes={draw, ultra thick, fill=blue!20},
19        row sep=0.3cm,column sep=0.5cm] {
20    \node[draw=none,fill=none] {Plain node}; &
21    \node[rectangle] {Rectangle}; &
22    \node[circle] {Circle};\\
23    \node[ellipse] {Ellipse};&
24    \node[circle split] {Circle \nodepart{lower} split};&
25    \node[forbidden sign,text width=4em, text centered]
26                    {Forbidden sign};\\
27    \node[diamond] {Diamond};&
28    \node[cross out] {Cross out};&
29    \node[strike out] {Strike out};\\
30    \node[regular polygon,regular polygon sides=5] {$n=5$};&
31    \node[regular polygon,regular polygon sides=7] {$n=7$};&
32    \node[regular polygon,regular polygon sides=9] {$n=9$};&
33    \node[ann]{Regular polygon};\\
34    \node[star,star points=4] {$p=4$};&
35    \node[star,star points=7,star point ratio=0.8] {$p=7$};&
36    \node[star,star points=10] {$p=9$};&
37    \node[ann]{Star};\\
38    };
39\end{tikzpicture}
40
41
42\end{document}
43